elements

sets form elements

object elements;

Example

var form1 = [
    { view:"text", label:"Login", name:"login"},
    { view:"text",  label:"Email", name:"email"},
    { view:"button",  name:"submit", value:"Submit"}
];
 
webix.ui({
    view:"form", 
    id:"my_form", 
    elements: form1
});
 
//accessing the "login" field object    
var login = $$("my_form").elements.login;
 
//getting the value of the "login" field
var loginValue = $$("my_form").elements.login.getValue();

See also
  • API
  • Articles
  • Back to top