Selection of multiple levels

Open
#1,105 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, r
Domain
frontend

Research direction

No file, test, or entry point is identified in the issue, so start by locating the DT table-filtering implementation and its existing factor-level selection behavior. Done means displaying unique levels from multi-valued cells and filtering rows when any selected level is present, with coverage for the A/B/C example.

Written by the indexing model from the issue text.

Description

question

Hi people of DT

I have a question regarding the following issue:

In filtering a factor variable, we are currently able to click on the different levels by which all rows including one of our selections are displayed. For instance, I click on A and B, by which all rows having A or B are displayed.

But, what if I have multiple levels into these cells? For instance, a row includes both A and B (A, B) or both B and C (B, C). Does the DT team know how all unique values could be displayed in the filtering (A, B, C) but all rows including the selection are displayed as a consequence?

As an example: I have 3 rows, with following cells in the column 'category': A - A, B - B, C
In the filtering, I am able to select A or B or C. When I click on A, the first 2 rows are displayed. When I add B to this selection, all rows are displayed.

Thanks in advance!

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.