Replies: 1 comment 5 replies
-
|
You're welcome to look at the source for EditableCell, It's probably the best way to do it right now since we aren't there yet on supporting textfields inside of Tables. Each cell in your row could open the same Popover. If you want the fields to match widths of their cells or some close approximation you can either measure it like we did in that implementation. Or you could possibly put the Table into a controlled resizable state, and use the column widths to set it https://react-aria.adobe.com/Table#resize-events, up to you if you actually support the resizing. The editable cell you're looking at also supports form validation. Hopefully this will be easier down the line, maybe even with the EditableCell as a part of RAC, but we've not had a chance to think about that yet. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I saw an editable cell demo in the React Spectrum documentation. However, in our use case, we need the entire row to enter edit mode together. Is there a good way to achieve this? If we use the dialog approach, the column widths would need to be handled separately; if we edit directly within the Table, it's difficult to integrate form and validation.
Beta Was this translation helpful? Give feedback.
All reactions