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 entry.booleanDeprecated.No longer needed.booleanDeprecated.No longer needed.booleanDeprecated.No longer needed.intMaximum number of entries the user may add.booleanDeprecated.No longer needed.Insert a regex expression which will be used to validate each entry.booleanAllow the user to drag entries to reorder them.booleanDeprecated.translation keys will be translated by default.booleanDeprecated.No longer needed.
-
Element Details
-
title
String title -
titleTranslation
Deprecated.No longer needed. OneConfig now checks whether the given title is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the title and remove this flag.- Default:
false
-
description
String description- Default:
""
-
descriptionTranslation
Deprecated.No longer needed. OneConfig now checks whether the given description is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the description and remove this flag.- Default:
false
-
icon
String icon- Default:
""
-
category
String category- Default:
"General"
-
categoryTranslation
Deprecated.No longer needed. OneConfig now checks whether the given category is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the category and remove this flag.- 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.No longer needed. OneConfig now checks whether the given placeholder is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the placeholder and remove this flag.- Default:
false
-
regex
String regexInsert a regex expression which will be used to validate each entry. Entries that do not match are highlighted and are not written to the property.- Default:
""
-
maxEntries
int maxEntriesMaximum number of entries the user may add.0means 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.No longer needed. OneConfig now checks whether the given addText is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the addText and remove this flag.- Default:
false
-