tooltip

sets a popup message next to the uploader button when the cursor points to it

string|boolean|function|object tooltip;

Example

// tooltip as a boolean
webix.ui({
    view:"uploader", value:"Choose", tooltip:true
});
 
// tooltip as a string
webix.ui({
    view:"uploader", value:"Choose", tooltip:"#value# a file"
});
 
// tooltip as a function
webix.ui({
    view:"uploader", value:"Choose", tooltip:function(obj){
        return obj.value + " a file";
    }
});
 
// tooltip as a configuration object
webix.ui({
    view:"uploader", value:"Choose", tooltip:{
        dx:10, dy:20, template:"#value# a file"
    }
});

Related samples

Details

If you define the tooltip as a function, it receives one parameter - the configuration object of the uploader button.

If you define the tooltip as an object, you can configure the tooltip and define its template as a string or a function like in the previous two examples:

See also
Back to top