setValue

sets a new value for the component

string setValue(string value, [any config] );
valuestringa color in RGB, HSL, HEX formats, HTML color codes
configanyoperation config
stringa color in RGB, HSL, HEX formats, HTML color codes

Example

webix.ui({ 
    view:"colorboard",
    id:"color",
    cols:30,
    rows:30,
    width:400,
    height:400
});
 
$$("color").setValue("#2626FF");
 
$$("color").getValue(); // -> "#2626FF"

Details

The second parameter can be of any type (from a string to an object). config will be passed to the onChange event as the last parameter.

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.