DataTables sorting not working with Space key

DataTables sorting not working with Space key

harshitharshit Posts: 2Questions: 1Answers: 0

DataTables sorting not working with Space key, what additional code i have to add to make it accessible.

Answers

  • tangerinetangerine Posts: 3,342Questions: 35Answers: 394

    I don't understand the question. How is the space bar relevant to sorting?

  • colincolin Posts: 15,112Questions: 1Answers: 2,583
    edited April 2020

    If you mean in the header, you can use the Enter key to change the sorting. If you want space to trigger the ordering, you would need to define your own keyup handler on those elements.

    Colin

  • harshitharshit Posts: 2Questions: 1Answers: 0

    For accessibility support keyboard user can use spacebar.

This discussion has been closed.