码迷,mamicode.com
首页 > 其他好文 > 详细

设置自定义扩展属性及展示布局

时间:2018-03-19 18:10:46      阅读:260      评论:0      收藏:0      [点我收藏+]

标签:formbuilde设置自定义属性及布局

var rooturl = "../../jsonHttpServlet?channelNo=1"; var GetToJson; var LLid function lisize(sel) {     $('.frmb li').each(function() {         $(this).change(function() {             var LLid = $(this).attr('id');             if (sel[sel.selectedIndex].value == "full") {                 $("#" + LLid).addClass('width100');                 $("#" + LLid).removeClass('width50');                 $("#" + LLid).removeClass('width30');                 $("#" + LLid).removeClass('width20');             } else if (sel[sel.selectedIndex].value == "half") {                 $("#" + LLid).addClass('width50');                 $("#" + LLid).removeClass('width100');                 $("#" + LLid).removeClass('width30');                 $("#" + LLid).removeClass('width20');             } else if (sel[sel.selectedIndex].value == "third") {                 $("#" + LLid).addClass('width30');                 $("#" + LLid).removeClass('width50');                 $("#" + LLid).removeClass('width100');                 $("#" + LLid).removeClass('width20');             } else if (sel[sel.selectedIndex].value == "twenty") {                 $("#" + LLid).addClass('width20');                 $("#" + LLid).removeClass('width50');                 $("#" + LLid).removeClass('width100');                 $("#" + LLid).removeClass('width30');             }         });     }); } window.sessionStorage.removeItem('formData'); jQuery(function($) {     var fields = [];     var replaceFields = [];     var actionButtons = [];     var templates = {         inputButton : function(fieldData) {              return {                  field :  '<input id="' + fieldData.name + '" name="' + fieldData.name + '" class="form-control  input_button" onclick>  <button class="btn btn-primary">选择</button',              }          },         // inputButton : function(fieldData) {         //     return {         //         field : '<input id="' + fieldData.name + '" name="' + fieldData.name + '" class="form-control  input_button" onclick> ',         //         onclick: function() {         //             alert(111)         //         }         //     }         // },     };     var inputSets = [ {         label : '模版示例',         name : 'user-details',         id : 'llo',         icon : '

设置自定义扩展属性及展示布局

标签:formbuilde设置自定义属性及布局

原文地址:http://blog.51cto.com/zifeng5966/2088642

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!