Webix add tooltip to specific elements in treetable

206 Views Asked by At

This example, Click Here has column votes with set of number value. And I want add tooltips for elements which has more than 400 votes. How to achieve this?

1

There are 1 best solutions below

0
Slide On

You need add tooltip property in treetable configuration:

tooltip: (obj, common) => {
  return (obj.votes > 400 && common.column.id === "votes") ? 
  "Your text here" : ""
}

Demo snippet is here: https://webix.com/snippet/2ffa6713

In this example tooltip shown only on votes column.