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: 2,563Questions: 21Answers: 288

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

  • colincolin Posts: 8,661Questions: 0Answers: 1,449
    edited April 2

    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.

Sign In or Register to comment.