EditableList
Displays a submenu entry linking to an editable list of strings.
Key | Type | Description | Required | Default | Min Version |
---|---|---|---|---|---|
footerText | string | Small text shown below the list | Localizable | "" | – |
itemFooterText | string | Small text shown on the add-new-item page | Localizable | "" | – |
maxCount | integer | Maximum number of items | – | INT_MAX | – |
validationRegex | string | Regex used to validate string items | – | nil | 1.2-10 |
When modifying or adding a string item, if it fails to match validationRegex
, it cannot be saved.
Return Type | Description |
---|---|
array of string | The list contents |
Theme
Theme Key | Type | Description |
---|---|---|
textColor | Color | Text color |
caretColor | Color | Caret color |
placeholderColor | Color | Placeholder color |
Example
{
maxCount = 10;
cell = "EditableList";
label = "Editable List";
key = "list-4";
default = {
"Default";
};
validationRegex = "^[0-9a-zA-Z]+$";
};