Class Form Widget
- Contents
- Before you begin
- Extends from Widget
- Property
- Method
Class constructor
new Form([ String id, String class, String action, Strng method, Bool checkValid, String rel, String done, String onFormSubmit, Array[Array/Widget] children, String/Widget child, Array attribute, ]);
Property :
id ↔ String default NULL class ↔ String default NULL method ↔ String GET/POST attribute ↔ Array[ data-silent ↔ Bool ] : default NULL
Method :
Children/Child
Children can be String/Array/Widget
Text child:
<spacer>
Children type array
type ↔ String text/textarea/radio/checkbox/select, default is text class ↔ String ex. -fill id ↔ String ex. group-search value ↔ Mixed autocomplete ↔ String ex. ON/OFF placeholder ↔ String pretext ↔ String posttext ↔ String container ↔ Array attribute ↔ Array [ data-query ↔ String data-altfld ↔ String onEnter ↔ String value submit = form submit when hit enter in text box default NULL ]
Class sg-form
When assign class with sg-form and assign rel with any value
