Annotation Interface MultiSelectDropdown
Renders a dropdown that opens a selectable list.
When checkable = true (default), multiple items can be selected; the annotated
field must be boolean[] indexed by option position.
When checkable = false, only one item can be selected; the annotated field must
be int (selected index, -1 for none).
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDeprecated.booleanDeprecated.No longer needed.booleanWhen true (default), renders checkboxes for multi-select.Deprecated.booleanDeprecated.No longer needed.String[]String[]Deprecated.booleanDeprecated.No longer needed.Deprecated.booleanDeprecated.translation keys will be translated by default.Deprecated.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
-
titleKey
Deprecated.- Default:
""
-
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
-
descriptionKey
Deprecated.- Default:
""
-
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
-
categoryKey
Deprecated.- Default:
""
-
subcategory
String subcategory- Default:
"General"
-
subcategoryTranslation
Deprecated.translation keys will be translated by default.- Default:
false
-
subcategoryKey
Deprecated.- Default:
""
-
options
String[] options- Default:
{}
-
optionsTranslation
Deprecated.No longer needed. OneConfig now checks whether the given options is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the options and remove this flag.- Default:
false
-
optionsKey
Deprecated.- Default:
{}
-
checkable
boolean checkableWhen true (default), renders checkboxes for multi-select. When false, single-select list.- Default:
true
-