is there a way to avoid wrapping around at the end of a row or column when navigating with arrows?

is there a way to avoid wrapping around at the end of a row or column when navigating with arrows?

alainmalainm Posts: 3Questions: 1Answers: 0

I have enabled keys with keys: true, but I haven't seen anything to configure the wraparound at the end of a line or column.

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    This example might help, it shows how tab and the 'j' key move the position. Can you take a look, please, and see if that gets going,

    Colin

  • alainmalainm Posts: 3Questions: 1Answers: 0

    I don't see any link in your reply :-)

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    Oops - apologies - here it is: http://live.datatables.net/xeqavixu/1/edit

    Colin

  • alainmalainm Posts: 3Questions: 1Answers: 0

    hmm, it seems the callback is never called for arrow keys. Am I missing something?

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    Yeah, the arrow keys are built-in, so they can't be over-written using the API/options. You can edit the JS yourself in the KeyTable extension source (a benefit of open-source software), but yep, they can't be over-written with config,

    Colin

This discussion has been closed.