Password
The <sdpi-password>
component provides a styled wrapper of <input type="password">
.
Exampleâ
Property Inspector HTML
<sdpi-item label="Password">
<sdpi-password setting="api_key"></sdpi-password>
</sdpi-item>
Resultâ
value
The value of the component is represented as a string
.
{
"api_key": "top secret, shh"
}
Configurationâ
The component supports the following configuration.
Name | Type | Description |
---|---|---|
disabled | boolean | Determines whether the input is disabled. |
maxlength | number | Optional maximum length of the value. |
placeholder | string | Optional placeholder text shown in the input. |
required | boolean | When present, an icon is shown in the input if the value is empty. |
value | string | The value of the component, and the persisted setting. |
Persistenceâ
The value of the component can be automatically persisted to the Stream Deck with the following configuration.
Name | Type | Description |
global | boolean | When present, the value will be persisted to the global settings. |
setting | string | The path of the property where the value should be persisted in the settings. |
setting
The setting
represents the path of a property. If required, this path can denote a nested property within the settings, e.g. if the setting
were foo.bar.prop
, the value would be saved to:
{
"foo": {
"bar": {
"prop": <value>
}
}
}