Package journeymap.api.v2.client.option
Class EnumOption<E extends KeyedEnum>
java.lang.Object
journeymap.api.v2.client.option.Option<E>
journeymap.api.v2.client.option.EnumOption<E>
-
Field Summary
Fields inherited from class journeymap.api.v2.client.option.Option
config, defaultValue -
Constructor Summary
ConstructorsConstructorDescriptionEnumOption(OptionCategory category, String fieldName, String label, E defaultValue) Boolean - creates a dropdown of the enum list. -
Method Summary
Methods inherited from class journeymap.api.v2.client.option.Option
get, getCategory, getDefaultValue, getFieldName, getLabel, getSortOrder, set, setSortOrder
-
Constructor Details
-
EnumOption
Boolean - creates a dropdown of the enum list. Labels are specified in the getKey fromKeyedEnumthat your enum must extend. For tooltips, your i18n key plus .tooltip in your language json example mod.option.label and mod.option.label.tooltip- Parameters:
category- - The category;fieldName- - The fieldName;defaultValue- - The default enum value.
-