I want to create dynamic tooltips:
I have a large table created by a mysql query. And I have created another query to get the comments for each column and I want display each comment as a tooltip at every column.
I've added the following code at the tooltip section (this grabs the tooltip text from the comment query):
{{ localStorage.values.table_comments.column_comment[localStorage.values.table_comments.column_name.indexOf('effectiveWidth')] }}
See this as a screenshot:
This works very fine. But...:
I have a lot's of colums. I have to copy the name of the column (in this case 'effectiveWidth' in each tooltip. It is possible to refer this dynamically? For examle column.id
or something else?
Could anybody help?
Thanks a lot guys! Georg