Inplace Editor API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
value | string | — | Sets the content of the editor. |
disabled | boolean | false | Prevents the editor from entering edit mode. |
error | boolean | false | Sets the error state of the input. |
maxlength | number | — | Maximum number of characters allowed. |
placeholder | string | — | Placeholder text shown when the editor is empty. |
JavaScript API
| Name | Kind | Description | |
|---|---|---|---|
value | getter | Returns the current visible text in display mode. | |
savedContent | getter | Returns the last saved input value. | |
selectAll | action | Selects all content in the editor and sets focus. | |
Events
| Event | Description | Returns | |
|---|---|---|---|
update | Fires on blur with the current text content. | { detail: { value: string } } | |