overlay panel inside datatable column header click

UI Components for Angular
Post Reply
dsoltesz
Posts: 63
Joined: 03 May 2016, 04:42

24 Jul 2016, 15:39

In the overlay panel showcase it shows displaying the panel on row click and the panel gets the correct target from $event. Is there a way to display panel on column header click? Can you define a column header template so you could then define your own click event just like the row template example? I'm using Lazy which will fire the lazyload method but the $event doesn't have the target information available so the overlay panel will display below the datatable instead of the column header I just clicked.

I think a few different solutions could be done.

1. Expose a column header click event on the datatable (which has the target info as well as necessary column info / sort info
2. Add support for a column header template so users can define their own layout / click etc.
3. Lazyload method needs to pass the correct $event target info


Let me know if any of these suggestions could be added to the datatable.

Thanks

dsoltesz
Posts: 63
Joined: 03 May 2016, 04:42

25 Jul 2016, 19:38

any thoughts on this?

at a minimal this is a bug..the (onLazyLoad) needs to pass the original event as well so if you want to get the correct context/target etc you can.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests