hi i got this form in my script,
can i parse option values like height and width inside the script,
or have i to style it with jQuery after rendering through that script?
var form1 = new Backbone.Form({
schema: {
country: { type: 'Select', options: ['UK', 'USA'] },
city: { type: 'Select', options: cities.UK },
message: { type: 'Text'}
}
}).render();
You can use the
fieldAttrsproperty to set any attributes to the element:Alternatively you can provide a CSS class using the
fieldClassproperty, and apply CSS rules using regular stylesheets:All the available schema attributes are documented here.