Annotation Interface DraggableList


@Retention(RUNTIME) @Target(FIELD) @Documented public @interface DraggableList
Renders a reorderable list

The annotated field must be String[]

When checkable = false which is the default the property value is the full ordered list

When checkable = true the options value holds all items and the property value is the ordered subset of enabled items

  • 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
    • titleKey

      Deprecated.
      Default:
      ""
    • 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
    • descriptionKey

      @Deprecated String descriptionKey
      Deprecated.
      Default:
      ""
    • 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
    • categoryKey

      @Deprecated String categoryKey
      Deprecated.
      Default:
      ""
    • subcategory

      String subcategory
      Default:
      "General"
    • subcategoryTranslation

      @Deprecated boolean subcategoryTranslation
      Deprecated.
      translation keys will be translated by default
      Default:
      false
    • subcategoryKey

      @Deprecated String subcategoryKey
      Deprecated.
      Default:
      ""
    • options

      String[] options
      Full set of items which is required when checkable = true and optional otherwise
      Default:
      {}
    • optionsTranslation

      @Deprecated boolean optionsTranslation
      Deprecated.
      OneConfig auto-translates options values that are translation keys so pass the key directly
      Default:
      false
    • optionsKey

      @Deprecated String[] optionsKey
      Deprecated.
      Default:
      {}
    • checkable

      boolean checkable
      Show checkboxes to enable or disable individual items
      Default:
      false