id

the component ID

id id;

Example

webix.ui({
    view:"radio", 
    id:"rad", 
    click:change_batch, 
    options:[
        "1","2", "3"
    ]      
});
 
 
function change_batch(){
    var mode = $$("rad").getValue(); // "1" or "2"
    $$("mybar").showBatch(mode); //the value is passed into the function
}

Related samples

Details

The parameter can contain any string or numeric value and doesn't have a limit on length.

Use the ID to get to the API of a component (its methods, properties, and events).

See also
Back to top