hjalmers / angular-generic-table

A generic table for Angular 2+. Generic table uses standard markup for tables ie. table, tr and td elements etc. and has support for expanding rows, global search, filters, sorting, pagination, export to CSV, column clicks, custom column rendering, custom export values.
https://hjalmers.github.io/angular-generic-table/
MIT License
105 stars 55 forks source link

Custom Header #296

Open MiniMenu opened 5 years ago

MiniMenu commented 5 years ago

Hi, I added a custom header with a checkbox?

screen shot 2018-11-30 at 6 17 31 am

Is there a way to get the column's objectkey or the column's information when a checkbox is selected? Pls help. Thanks in advance.

hjalmers commented 5 years ago

@MiniMenu sorry for the late reply, I just looked at the current code and at the moment we're only passing the name attribute to the column header, so a temporary workaround would be to use same value for objectKey and name for the headers using the checkbox component and resolve the actual name in your component using the objectKey. I'll mark this a feature request though as you might want to access other values from the column to besides the name, objectKey being on obvious one.