How to select the entire row, while having only first(one) column clickable?

Open
#1,070 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, r
Domain
frontend, web-dev

Research direction

Start with the linked DataTables inline-editing example and the Stack Overflow question to understand the requested selection behavior. Then trace the DT selectable configuration used with server-side Shiny tables; done means the first non-editable column selects the entire row without interfering with editable cells.

Written by the indexing model from the issue text.

Description

I need to do the same as here:

https://editor.datatables.net/examples/inline-editing/simple.html

Ideally with a checkbox.

With the select extension, this is configured simply: select = list(style = 'multi+shift', selector = "td:first-child"),

Only via the built-in selectable that works with the server-side on the R (Shiny)...

I need to make only the cells of the first non-editable column selectable, because selectable and editable are not very conveniently combined together in one cell

P.S.: My SO question: https://stackoverflow.com/questions/76473946/how-to-select-the-entire-row-while-having-only-firstone-column-clickable


By filing an issue to this repo, I promise that

  • I have fully read the issue guide at https://yihui.org/issue/.
  • I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

Dominant language
JavaScript
Stars
621
Forks
177
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rstudio/DT

All issues in rstudio/DT

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.