tooltip

sets a popup message next to the label when a cursor points to it

string|boolean|function|object tooltip;

Example

// tooltip as a string
webix.ui({
    view:"label", label:"My App",
    tooltip:"The app label of #label#"
});
 
// tooltip as a function
webix.ui({
    view:"label", label:"My App",
    tooltip:function(obj){
        return "The app label of " + obj.label;
    }
});
 
// tooltip as a configuration object
webix.ui({
    view:"label", label:"My App",
    tooltip:{
        dx:10, dy:20,
        template:function(obj){
            return "The app label of " + obj.label;
        }
    }
});

Related samples

Details

If you define the tooltip as a function, it receives the configuration object of the label.

If you define the tooltip as an object, you can configure the tooltip and define its template as a string or a function.

See also
Back to top