问题
I've used the prime ng data table in my application.
In that, I want to use tab index for sort icon(<p-sortIcon>
) but it's not working. can anyone help me with this??
this is how I used in code image
And displaying as below, once I enter tab, got focus there but I'm unable to do sorting using the keyboard. image
回答1:
Try this friend.
[attr.tabindex]="1"
回答2:
why dont you go with primeng default modules....
https://primefaces.org/primeng/#/table/sort
来源:https://stackoverflow.com/questions/59856488/issue-with-tab-index-for-prime-ng-datatables-sort-icon