sets a popup message next to the multiselect when the cursor points to it
// tooltip as a boolean
webix.ui({
view:"multiselect", value:"TV", options:["TV","WiFi"],
tooltip:true
});
// tooltip as a string
webix.ui({
view:"multiselect", value:"TV", options:["TV","WiFi"],
tooltip:"Conveniences: #value#"
});
// tooltip as a function
webix.ui({
view:"multiselect", value:"TV", options:["TV","WiFi"],
tooltip:function(obj){
return "Conveniences: " + obj.value;
}
});
// tooltip as a configuration object
webix.ui({
view:"multiselect", 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 multiselect.
If you define the tooltip as an object, you can configure the tooltip and define its template as a string or a function.