Inline edit
An inline edit displays a custom input component that switches between reading and editing on the same page.Installation
| Install | yarn add @atlaskit/inline-edit |
|---|---|
| Source | Bitbucket.org, (opens new window) |
| npm | @atlaskit/inline-edit, (opens new window) |
| Bundle | unpkg.com, (opens new window) |
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 | The component shown when user is editing (when the inline edit is not in |
|---|---|
| Type | (fieldProps: ExtendedFieldProps<FieldValue>, ref: React.RefObject<any>) => React.ReactNode |
| Description | Sets whether the confirm and cancel action buttons are displayed in the bottom right of the field. |
|---|---|
| Type | boolean |
| Description | Sets whether the component shows the |
|---|---|
| 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 | Saves and confirms the value entered into the field. It exits |
|---|---|
| Type | (value: any, analyticsEvent: UIAnalyticsEvent) => void |
| Description | Handler called when readView is clicked. |
|---|---|
| Type | () => void |
| Description | The component shown when not in |
|---|---|
| Type | () => React.ReactNode |
| 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> |