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