getInputNode

gets the HTML element related to the component

HTMLInputElement| HTMLTextAreaElement getInputNode();
HTMLInputElement| HTMLTextAreaElementthe component HTML element

Example

webix.ui({
    container:"box",
    view:"form", 
    elements:[
        { view:"text",   id:"f1", label:"Email" },
        { view:"text",   id:"f2", label:"Password", type:"password" },
        { view:"button", id:"b1", value:"Login",  css:"webix_primary" }
    ]
});
 
$$("b1").getInputNode();
//-> <button type="button" class="webix_button">Login</button>

Details

Dimensions you get are equal to library defaults defined for a standard button. They can be as well set in JS object:

{ view:"button", id:"b1", value:"Login",  css:"webix_primary", width: 300, height: 50 }
See also
Back to top