Annotation Interface TextList


@Retention(RUNTIME) @Target(FIELD) @Documented public @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.

  • Element Details

    • title

      String title
    • titleTranslation

      boolean titleTranslation
      Default:
      false
    • description

      String description
      Default:
      ""
    • descriptionTranslation

      boolean descriptionTranslation
      Default:
      false
    • icon

      String icon
      Default:
      ""
    • category

      String category
      Default:
      "General"
    • categoryTranslation

      boolean categoryTranslation
      Default:
      false
    • subcategory

      String subcategory
      Default:
      "General"
    • subcategoryTranslation

      boolean subcategoryTranslation
      Default:
      false
    • placeholder

      @TranslatedDefault("oneconfig.textinput.placeholder") String placeholder
      Default:
      "oneconfig.textinput.placeholder"
    • placeholderTranslation

      boolean placeholderTranslation
      Default:
      false
    • regex

      String regex
      Insert 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 maxEntries
      Maximum number of entries the user may add. 0 means unlimited.
      Default:
      0
    • reorderable

      boolean reorderable
      Allow the user to drag entries to reorder them.
      Default:
      true
    • addText

      String addText
      Label of the button that appends a new entry.
      Default:
      "Add"
    • addTextTranslation

      boolean addTextTranslation
      Default:
      false