Annotation Interface TextList
Renders a user-editable list of text inputs
The annotated field must be String[]
Unlike DraggableList the entries are not a fixed set
The user types each value and can add and remove rows
The property value is the list of entries in display order
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionLabel of the button that appends a new entrybooleanDeprecated.OneConfig auto-translates addText values that are translation keys so pass the key directlybooleanDeprecated.OneConfig auto-translates category values that are translation keys so pass the key directlybooleanDeprecated.OneConfig auto-translates description values that are translation keys so pass the key directlyintMaximum number of entries the user may add and0means unlimitedbooleanDeprecated.OneConfig auto-translates placeholder values that are translation keys so pass the key directlyInsert a regex expression which will be used to validate each entrybooleanAllow the user to drag entries to reorder thembooleanDeprecated.translation keys will be translated by defaultbooleanDeprecated.OneConfig auto-translates title values that are translation keys so pass the key directly
-
Element Details
-
title
String title -
titleTranslation
Deprecated.OneConfig auto-translates title values that are translation keys so pass the key directly- Default:
false
-
description
String description- Default:
""
-
descriptionTranslation
Deprecated.OneConfig auto-translates description values that are translation keys so pass the key directly- Default:
false
-
icon
String icon- Default:
""
-
category
String category- Default:
"General"
-
categoryTranslation
Deprecated.OneConfig auto-translates category values that are translation keys so pass the key directly- Default:
false
-
subcategory
String subcategory- Default:
"General"
-
subcategoryTranslation
Deprecated.translation keys will be translated by default- Default:
false
-
placeholder
- Default:
"oneconfig.textinput.placeholder"
-
placeholderTranslation
Deprecated.OneConfig auto-translates placeholder values that are translation keys so pass the key directly- Default:
false
-
regex
String regexInsert a regex expression which will be used to validate each entryEntries that do not match are highlighted and are not written to the property
- Default:
""
-
maxEntries
int maxEntriesMaximum number of entries the user may add and0means unlimited- Default:
0
-
reorderable
boolean reorderableAllow the user to drag entries to reorder them- Default:
true
-
addText
String addTextLabel of the button that appends a new entry- Default:
"Add"
-
addTextTranslation
Deprecated.OneConfig auto-translates addText values that are translation keys so pass the key directly- Default:
false
-