setValue

sets a new value for the component

void setValue(string value);

Parameters

valuestringa new value for the button

Example

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

Details

The value of the control may be:

See also
Back to top