Inline Edit
<zn-inline-edit> | ZnInlineEdit
Short summary of the component’s intended use.
<zn-sp> <form action="#" method="get"> <zn-inline-edit caption="Something" name="something" value="Awesome" edit-text="Edit"></zn-inline-edit> </form> <zn-inline-edit caption="Something" value="1" action="#" method="GET" options="{"1": "Option 1","2": "Option 2"}"> </zn-inline-edit> <zn-inline-edit provider="color" caption="Something" name="something" value="gb" edit-text="Edit"></zn-inline-edit> </zn-sp>
Examples
Inline Example
<zn-sp> <form action="#" method="get"> <zn-inline-edit caption="Something" name="something" value="Awesome" inline></zn-inline-edit> </form> <zn-inline-edit caption="Something" value="1" action="#" method="GET" inline options="{"1": "Option 1","2": "Option 2"}"> </zn-inline-edit> </zn-sp>
Second Example
TODO
Importing
If you’re using the autoloader or the traditional loader, you can ignore this section. Otherwise, feel free to use any of the following snippets to cherry pick this component.
To import this component from the CDN using a script tag:
<script type="module" src="https://cdn.jsdelivr.net/npm/@kubex/zinc@1.0.0/dist/components/inline-edit/inline-edit.js"></script>
To import this component from the CDN using a JavaScript import:
import 'https://cdn.jsdelivr.net/npm/@kubex/zinc@1.0.0/dist/components/inline-edit/inline-edit.js';
To import this component using a bundler:
import '@kubex/zinc/dist/components/inline-edit/inline-edit.js';
Slots
Name | Description |
---|---|
(default) | The default slot. |
example
|
An example slot. |
Learn more about using slots.
Properties
Name | Description | Reflects | Type | Default |
---|---|---|---|---|
helpText
help-text
|
The input’s help text. If you need to display HTML, use the help-text slot instead. *
|
string
|
''
|
|
updateComplete |
A read-only promise that resolves when the component has finished updating. |
Learn more about attributes and properties.
Events
Name | React Event | Description | Event Detail |
---|---|---|---|
zn-event-name |
|
Emitted as an example. | - |
Learn more about events.
Custom Properties
Name | Description | Default |
---|---|---|
--example |
An example CSS custom property. |
Learn more about customizing CSS custom properties.
Parts
Name | Description |
---|---|
base |
The component’s base wrapper. |
Learn more about customizing CSS parts.
Dependencies
This component automatically imports the following dependencies.
<zn-example>