Inline editable text field
An inline editable text field displays a text field that switches between reading and editing on the same page.Props
| Description | Additional information to be included in the |
|---|---|
| Type | { [x: string]: any; } |
| Description | Accessibility label for the cancel action button. |
|---|---|
| Type | string |
| Description | Accessibility label for the confirm action button, which saves the field value into |
|---|---|
| Type | string |
| Description | The user input entered into the field during |
|---|---|
| Type | any |
| Description | Accessibility label for button, which is used to enter |
|---|---|
| Type | string |
| Description | Append 'edit' to the end of the button label ( |
|---|---|
| Type | string |
| Description | Sets whether the confirm and cancel action buttons are displayed in the bottom right of the field. |
|---|---|
| Type | boolean |
| Description | Sets height of the text field to compact. The top and bottom padding is decreased. |
|---|---|
| Type | boolean |
| Description | Determines whether the input value can be confirmed as empty. |
|---|---|
| Type | boolean |
| Description | Sets the view when the element blurs and loses focus (this can happen when a user clicks away).
When set to true, inline edit stays in |
|---|---|
| Type | boolean |
| Description | Label above the input field that communicates what value should be entered. |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |
| Description | Exits |
|---|---|
| Type | () => void |
| Description | Calls the |
|---|---|
| Type | (value: string, analyticsEvent: UIAnalyticsEvent) => void |
| Description | Text shown in |
|---|---|
| Type | string |
| Description | Determines whether the |
|---|---|
| Type | boolean |
| Description | Determines whether it begins in |
|---|---|
| Type | boolean |
| Description | A |
|---|---|
| Type | string |
| Description | Displays an inline dialog with a message when the field input is invalid. This is handled by |
|---|---|
| Type | (value: any, formState: {}, fieldState: {}) => string | void | Promise<string | void> |