Skip to content

Commit

Permalink
docs(data-grid): update DataGrid documentation to include textFieldProps
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir Ashkan Baghdoust committed Nov 6, 2024
1 parent b9a7bee commit ec3d3c0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -748,9 +748,11 @@ Expected format: unformatted `string`, eg `'this is a string'`
- `iconPrefix?: scale-icon-string (eg 'action-download')`
- `iconSuffix?: scale-icon-string (eg 'action-download')`
- `editable?: boolean = false`
- `textFieldProps?: Object (eg { type: 'number', helperText: 'Enter a number' })`


If `editable` is set to `true`, a `scale-text-field` is used for the element. The properties of the `scale-text-field` can be passed to the editable component using the `textFieldProps` attribute.
If `editable` is set to `true`, a `scale-text-field` is used for the element. The properties of the `scale-text-field` can be passed directly to the editable component using the `textFieldProps` attribute.
and if the `editable` is set to `false`, the `scale-text-field` has no effect, as the cell will be read-only.
<Canvas withSource="close">
<Story name="Text Cell">
{`<content>
Expand Down

0 comments on commit ec3d3c0

Please sign in to comment.