brunano21 / angular-4-data-table

An Angular 5 data table, with pagination, sorting, expandable rows, row selection, etc. with basic accessibility support.
MIT License
11 stars 19 forks source link

Can send a component on rowToolTip? #43

Open Lesger117 opened 6 years ago

Lesger117 commented 6 years ago

Is it possible to return a component on a tooltip, for example get something of the row and return a loaded component that uses that row data and displaying that component template on the tooltip?

brunano21 commented 6 years ago

Hi @Lesger117, the rowToolTip is only for the row title. But you could manage what you are trying to do having some logic that when the user clicks on a button or hover the row itself, you can bind a function that takes the row data as input and displays your component template.

Lesger117 commented 6 years ago

Thanks @brunano21 , sorry for answer this late, is it possible to add an event to a row for example (mouseenter) property to then call a function, its because I can't find the way to use an hover trigger when user is on the row, and I only have the data-table-column tag so I don't know if it's possible to add this to the current version of angular-4-data-table. Regards