I'm trying to make a custom popover for a table cell, in order to show a cell details when clicking on it.
For now, I have the following app: https://stackblitz.com/edit/angular-m5rx6j
For now, the Popup component shown under the main component, but I would like to show it over the table, just under the element I clicked.
I suppose I need to do the following :
- Get the ElementRef of the 'td' where I click -> I don't know how
- Attach the overlay to this element -> Already do that, but with the root element
from Angular CDK : attach overlay to a clicked element
No comments:
Post a Comment