設置自定義擴展屬性及展示布局
阿新 • • 發佈:2018-03-19
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 : '
設置自定義擴展屬性及展示布局