tooltip

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

string|boolean|function|object tooltip;

Example

// tooltip as a string
webix.ui({
  template:"#value#", tooltip:"#data.value#",
  data:{ value:"Some text" }
});
 
// tooltip as an object with a template function
webix.ui({
  template:"#value#",
  data:{ value:"Some text" },
  tooltip:{
    dx:30,
    template:function(obj){
      return "Tooltip for " + obj.data.value;
    }
  }
});

Related samples

Details

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

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