allows removing the control's value upon clicking the button
webix.ui({
width:400,
rows:[
{ view:"colorboard", label:"Colorboard", clear:true }
]
});
To add the color resetting button to Colorboard when it's used for some input, e.g. Colorpicker, use the clear: true property in the suggest configuration:
webix.ui({
view:"form",
width:380,
rows:[
{
view:"colorpicker",
label:"Color",
value:"#751FE0",
suggest:{
type:"colorboard", body: {
clear:true
}
}
}
]
});
Back to top