How can I programmatically disable or remove arrow key navigation on a PrimeNG Table using...

Discussão em 'Angular' iniciado por Dion Joubert, Fevereiro 13, 2025.

  1. Dion Joubert

    Dion Joubert Guest

    I would like to programmatically disable left and right arrow key navigation in a PrimeNG Table using cell editing, without having to modify the Table component source code. See this example: Angular Primeng Tableedit Demo code.

    I have tried and succeeded in manually disabling left and right arrow key navigation, if I disable/comment out the onArrowLeft(event) and onArrowRight(event) events in the following script: \node_modules\primeng\fesm2015\primeng-table.js

    Is there a better way to successfully disable/remove/override left and right arrow key navigation in a PrimeNG Table that uses cell editing, in code (i.e how can I override the onArrowLeft(event) and onArrowRight(event) events)? Thank you!

    Continue reading...

Compartilhe esta Página