tooltip

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

string|function|object tooltip;

Example

// tooltip as a string
webix.ui({
    view:"icon", icon:"wxi-pencil", 
    tooltip:"Edit the profile"
});
 
// tooltip as a function
webix.ui({
    view:"icon", icon:"wxi-pencil",
    tooltip:function(obj){
        return obj.icon;
    }
});
 
// tooltip as an object
webix.ui({
    view:"icon", icon:"wxi-pencil",
    tooltip:{
        dx:10, dy:20,
        function(obj){
            return obj.icon;
        }
    }
});

Related samples

Details

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

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