primeng icon indicating copy to clipboard operation
primeng copied to clipboard

About Table(new)'s output event ---onRowClick and onRowDblclick

Open wangraoji opened this issue 8 years ago • 5 comments

At datatable, it has onRowClick and onRowDblclick. But at the table(new) ,it hasn't. I think, the two events is very important.

wangraoji avatar Mar 30 '18 08:03 wangraoji

Yes, I have the same problem.It feels good to be able to return the rowdata when you click and double click.

wang-cola avatar Mar 30 '18 09:03 wang-cola

@wangraoji @wang-cola

<ng-template pTemplate="body" let-rowData>
        <tr [pSelectableRow]="rowData" (dblclick)=".....">

TishchenkoAlex avatar Mar 30 '18 15:03 TishchenkoAlex

@wangraoji @wang-cola I'd like to just add in here that if you are migrating from the old DataTable to the TurboTable, you may want to enable metaKeySelection , as it is now off by default. Double-clicking without metaKeySelection will select and deselect the row, which may not be your desired behavior. metaKeySelection will force the user to ctrl+click to deselect a row. Just food for thought.

bwilfong3 avatar Mar 31 '18 00:03 bwilfong3

@TishchenkoAlex thank you

wangraoji avatar Apr 02 '18 13:04 wangraoji

@bwilfong3 thanks ! I used TishchenkoAlex suggestions。

wangraoji avatar Apr 02 '18 13:04 wangraoji