clear

allows removing the control's value upon clicking the button

boolean clear;

Example

webix.ui({
    width:400,
    rows:[
        { view:"colorboard", label:"Colorboard", clear:true }
    ]
});


Default value:

false
Details

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