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
Copy file name to clipboardExpand all lines: docs/pages/how-to/data-types.mdx
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,11 @@ For advanced use cases, you can provide `PreComponent` and `PostComponent` to re
37
37
38
38
To enable editing for a data type, you need to provide `serialize` and `deserialize` functions to convert the value to and from a string representation. You can then use the `Editor` component to provide a custom editor for the stringified value. When the user edits the value, it will be parsed using `deserialize`, and the result will be passed to the `onChange` callback.
39
39
40
+
-`props.value` - The value to edit.
41
+
-`props.setValue` - A function that can be used to update the value.
42
+
-`props.abortEditing` - A function that can be used to abort editing.
43
+
-`props.commitEditing` - A function that can be used to commit the value and finish editing.
0 commit comments