Field Item
The <sdpi-item> component is designed to complement inputs by providing a recognisable layout, as well as a label associated with the input. An sdpi-item will typically represent a single piece of information within the settings, although is not limited to such.
Exampleâ
Property Inspector HTML
<sdpi-item label="Name">
<sdpi-textfield required></sdpi-textfield>
</sdpi-item>
Resultâ
optional
An sdpi-item is not required when rendering components, but is recommended. Additional styling will be required of components not wrapped with an sdpi-item, for example.
Configurationâ
The component supports the following configuration.
| Name | Type | Description |
|---|---|---|
label | string | Label text that represents the field; when clicked, the first input within the component gains focus. |