sets a popup message next to the richselect when the cursor points to it
// tooltip as a boolean
webix.ui({
view:"richselect", value:"TV", options:["TV","WiFi"],
tooltip:true
});
// tooltip as a string
webix.ui({
view:"richselect", value:"TV", options:["TV","WiFi"],
tooltip:"Conveniences: #value#"
});
// tooltip as a function
webix.ui({
view:"richselect", value:"TV", options:["TV","WiFi"],
tooltip:function(obj){
return "Conveniences: " + obj.value;
}
});
// tooltip as a configuration object
webix.ui({
view:"richselect", value:"TV", options:["TV","WiFi"],
tooltip:{
dx:10, dy:20,
function(obj){
return "Conveniences: " + obj.value;
}
}
});
If you define the tooltip as a function, it receives the configuration object of the richselect.
If you define the tooltip as an object, you can configure the tooltip and define its template as a string or a function.