Replies: 3 comments 2 replies
-
|
If you want more information on my use case, you can also reach out to me internally - aolariu. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@ling1726 Could you help answering this question? |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Hey guys - any updates on this topic? :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Component
Table
Package version
9.55.0
React version
18.2
Environment
System: OS: Linux 6.5 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish) CPU: (16) x64 AMD EPYC 7763 64-Core Processor Memory: 53.59 GB / 62.78 GB Container: Yes Shell: 5.1.16 - /bin/bashCurrent Behavior
Hi,
Just a random question - let me know if this is a duplicate:
data rows) and NOT selectable loading/skeleton rows?Suppose we have a table with 2 elements. One row is a
data row- it contains useful data; the other is aloading row- it is a simple loading row with no actual data - just a skeleton/shimmer animation.I want to be able to only select the first row and that's it.
The behavior should be:
truestate, notmixednorfalse.data row)'s checkbox is in atruestate.loading row)'s checkbox is not available anyway - the DOM element is a simple div.Currently, I am able to achieve this behavior by doing an unconventional method:
I programmatically remove the
loading rowfrom theitemspassed to theuseTableFeatureshook:I can see that internally, in the
fluentUI\packages\react-components\react-table\library\src\hooks\useTableSelection.tsfile, we do have some code that hints to selectable rows:I do not know how to progress further from here.
I have the workaround that I've mentioned above, but I am looking for a concrete answer to my question from the beginning.
Expected Behavior
Proposed expected behavior: Fluent should have a documented, official way to describe how we can implement a controlled multiselect table (Table or DataGrid component) that contains different kinds of row items - actual data rows, loading rows, footer rows, etc.
I was not able to find any story and/or documentation in regards to this behavior.
Reproduction
https://stackblitz.com/edit/bzl56nww?file=src%2Fexample.tsx
Steps to reproduce
dev.mixedstate, even though the onlyselectable rowsare selected!Are you reporting an Accessibility issue?
no
Suggested severity
Medium - Has workaround
Products/sites affected
No response
Are you willing to submit a PR to fix?
yes
Validations
Beta Was this translation helpful? Give feedback.
All reactions