You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: Table inline editing polish
* fix lint
* fix styles and fix docs example
* Update packages/dev/s2-docs/pages/s2/TableView.mdx
Co-authored-by: Daniel Lu <dl1644@gmail.com>
---------
Co-authored-by: Daniel Lu <dl1644@gmail.com>
Copy file name to clipboardExpand all lines: packages/dev/s2-docs/pages/s2/TableView.mdx
+173-1Lines changed: 173 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ import {style} from '@react-spectrum/s2/style' with {type: 'macro'};
49
49
50
50
## Content
51
51
52
-
`TableView` follows the [Collection Components API](collections.html?component=Table), accepting both static and dynamic collections.
52
+
`TableView` follows the [Collection Components API](collections.html?component=Table), accepting both static and dynamic collections.
53
53
In this example, both the columns and the rows are provided to the table via a render function, enabling the user to hide and show columns and add additional rows.
54
54
55
55
```tsx render type="s2"
@@ -686,6 +686,174 @@ function subscribe(fn) {
686
686
}
687
687
```
688
688
689
+
## Editable Table
690
+
691
+
`EditableCell` represents an editable value in a single cell. It opens a popover that can contain any editable input or combination of inputs when the end user clicks the user provided `ActionButton` .
692
+
693
+
An `ActionButton` with `slot="edit"` must be provided as a child of the `EditableCell` to open the popover.
0 commit comments