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
104 stars 55 forks source link

Question: rowSelection: true - can we multiple select only when CTRL is selected #281

Open hope4555 opened 6 years ago

hope4555 commented 6 years ago

In many systems multiple select is working only when CTRL key is pressed Can this be done? i seem not to get the "e.ctrlKey" when i handle the event

hjalmers commented 6 years ago

Currently multi select is either on or off and rows are selected using normal click. It would be fairly easy to implement it together with a new option, something like rowSelectionCtrlCondition = true or maybe allow the existing rowSelectionAllowMultiple to accept and array of conditional keys like ['ctrlKey'] and not just true or false. What do you think?

hope4555 commented 6 years ago

i like "rowSelectionCtrlCondition = true" better