setValue

sets a new value for the component

void setValue(string value);

Parameters

valuestringa new value for the control

Example

webix.ui({
    view:"form", 
    elements:[
        { view:"button", id:"b1", value:"Edit", type:"form" },
        { view:"button", id:"b2", value:"Back", type:"form" }
    ]
});
...
$$("b1").setValue("Save");
$$("b1").refresh();
$$("b2").setValue("Cancel");
$$("b2").refresh();

See also
Back to top