tooltip

sets a popup message next to the tabbar item when the cursor points to it

string|boolean|function|object tooltip;

Example

// tooltip as a boolean
webix.ui({
    view:"tabbar", tooltip:true,
    options:[
        "Radio","Segmented","Template"
    ]
});
 
// tooltip as a string
webix.ui({
    view:"tabbar", tooltip:"#value#",
    options:[
        "Radio","Segmented","Template"
    ]
});
 
// tooltip as a function
webix.ui({
    view:"tabbar",
    tooltip:function(obj){
        return obj.value;
    },
    options:[
        "Radio","Segmented","Template"
    ]
});
 
// tooltip as a configuration object
webix.ui({
    view:"tabbar",
    tooltip:{
        dx:10, dy:20,
        template:"#value#"
    },
    options:[
        "Radio","Segmented","Template"
    ]
});

Related samples

Details

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

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