Nested data grid with switches #4353
-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary. Sorry, I don't know how to help with that. I did do a search though, and I managed to find these other Discussions that might be similar or related to your question. Give them a read to see if they answer your question. If they do, head back here and update this discussion and mark it as answered, pointing others to the related discussion:
|
Beta Was this translation helpful? Give feedback.
-
You can set a fixed height for a Paste data grid by wrapping it in a Box with For row selection, checkboxes are the recommended control for both individual and bulk selection in data grids. Switches are intended for immediate, on/off toggles (like settings), not for selection or bulk actions. There are no examples or recommendations in Paste for using switches as a "Select all" or bulk selection control; keeping selection UI consistent (checkboxes for both individual and bulk selection) is best for accessibility and clarity [source]. When using checkboxes, you should apply the If you need to implement auto-save, checkboxes are still appropriate for selection, but be mindful that checkboxes are not intended for instant actions—users expect to confirm their choices (e.g., via auto-save or a save button), whereas switches are for immediate state changes [source]. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
Hey @ankigupta92, sorry this slipped through the cracks! For your 1st question, you can follow what Dosubot said above, and wrap the Data Grid in a Box with For your 2nd question, I'd recommend signing up for office hours so we can get a better understanding of the user goal/interaction: https://docs.google.com/spreadsheets/d/10vD91zdwr9hjgDOV3HSGnoC0LgvYw-thmn3X_kvW0xk/edit?gid=18129311#gid=18129311 |
Beta Was this translation helpful? Give feedback.
-
Hey @ankigupta92 I’ll go ahead and close this issue for now, but feel free to reach out again if you have any questions or still need support. |
Beta Was this translation helpful? Give feedback.
Hey @ankigupta92, sorry this slipped through the cracks!
For your 1st question, you can follow what Dosubot said above, and wrap the Data Grid in a Box with
maxHeight
.For your 2nd question, I'd recommend signing up for office hours so we can get a better understanding of the user goal/interaction: https://docs.google.com/spreadsheets/d/10vD91zdwr9hjgDOV3HSGnoC0LgvYw-thmn3X_kvW0xk/edit?gid=18129311#gid=18129311