tooltip not working for fixed column in datatable

tooltip not working for fixed column in datatable

BoringGuy13BoringGuy13 Posts: 1Questions: 0Answers: 0
edited February 2021 in Free community support

I am trying to create a datatable with fixed column and while hovering the row each row should display a tooltip.
I also have to break line if my tootip message have more than one value so i am using the content property.
Everything works well but just when i hover on my fixed column its not showing tooltip.

"fnDrawCallback": function () {
                $(table_id + " tbody tr").each(function (index) {
                    sTitle = index;
                    if (index > 1) {
                        this.setAttribute('title', sTitle);
                        $(this).tooltip({
                            html: true,
                            content: function () {
                                return getToolTipMsg(table_id, index)
                            },
                            track: true,
                        });
                    }
                });
            }
        })

Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Replies

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    Take a look at this example - it's putting the salary field as a tooltip to the name field.

    Colin

This discussion has been closed.