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

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Label of the button that appends a new entry
    boolean
    Deprecated.
    OneConfig auto-translates addText values that are translation keys so pass the key directly
     
    boolean
    Deprecated.
    OneConfig auto-translates category values that are translation keys so pass the key directly
     
    boolean
    Deprecated.
    OneConfig auto-translates description values that are translation keys so pass the key directly
     
    int
    Maximum number of entries the user may add and 0 means unlimited
     
    boolean
    Deprecated.
    OneConfig auto-translates placeholder values that are translation keys so pass the key directly
    Insert a regex expression which will be used to validate each entry
    boolean
    Allow the user to drag entries to reorder them
     
    boolean
    Deprecated.
    translation keys will be translated by default
    boolean
    Deprecated.
    OneConfig auto-translates title values that are translation keys so pass the key directly
  • Element Details

    • title

      String title
    • titleTranslation

      @Deprecated boolean titleTranslation
      Deprecated.
      OneConfig auto-translates title values that are translation keys so pass the key directly
      Default:
      false
    • description

      String description
      Default:
      ""
    • descriptionTranslation

      @Deprecated boolean 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 boolean 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 boolean subcategoryTranslation
      Deprecated.
      translation keys will be translated by default
      Default:
      false
    • placeholder

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

      @Deprecated boolean placeholderTranslation
      Deprecated.
      OneConfig auto-translates placeholder values that are translation keys so pass the key directly
      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 and 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

      @Deprecated boolean addTextTranslation
      Deprecated.
      OneConfig auto-translates addText values that are translation keys so pass the key directly
      Default:
      false