Leave the line highlighted when you click on it.

Leave the line highlighted when you click on it.

ostmalostmal Posts: 102Questions: 33Answers: 0

Good afternoon! I ask you to explain: there are several modes of operation of table selection:
https://datatables.net/reference/api/select.style()
I need a "single". But I need it so that after selecting a row in the table, this selection remains. I.e. if we click on an already selected row , it should remain selected. Can you tell me how to do this?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,309Questions: 26Answers: 4,770
    Answer ✓

    if we click on an already selected row , it should remain selected.

    Checkout this disable element deselection example. If this isn't what you are looking for then maybe you will want to limit row selection to a specific column using select.selector or checkbox selection like this example.

    Kevin

  • ostmalostmal Posts: 102Questions: 33Answers: 0

    This is what I need! That's great, thank you.

Sign In or Register to comment.