javascript - Form layout in jquery jTable? -
i using jquery jtable plugin edit data - , @ - can't control layout of generated form, can single column of controls headers.
has found way layout table or else?
edit:
i found sort of solution, if set controls have widt 200 , set:
form.jtable-dialog-form { width:440px; } div.jtable-input-field-container { float: left; margin: 0px 5px 5px 0; padding: 2px; }
i 2 columns better before - has found better solution?
css changes
.custom_horizontal_form_field .jtable-input-field-container{ width: 400px !important; } .custom_horizontal_form_field .jtable-input-field-container .jtable-input-label{ width : 150px !important; float: left !important; }
using formcreated event of jtable add custom class name form i.e.,
formcreated : function(event, data){ $(data.form).addclass("custom_horizontal_form_field"); }
Comments
Post a Comment