form¶
- 
class webix.ui.form(data)¶
- Arguments: - data (object) – A configuration object
 - Form view. 
References¶
- views
- toolbar().
- helpers
- protoUI(),- scrollSize().
External references¶
Code¶
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | webix.protoUI({
    name:"form",
    defaults:{
        type:"form",
        autoheight:true
    },
    _default_height:-1,
    _form_classname:"webix_form",
    _form_vertical:true,
    $init:function(){
        this._viewobj.setAttribute("role", "form");
    },
    $getSize:function(dx, dy){
        if (this._scroll_y && !this._settings.width) dx += webix.ui.scrollSize;
        var sizes = webix.ui.layout.prototype.$getSize.call(this, dx, dy);
        if (this._settings.scroll || !this._settings.autoheight){
            sizes[2] =  this._settings.height || this._settings.minHeight || 0;
            sizes[3] += 100000;
        }
        return sizes;
    }
}, webix.ui.toolbar);
 |