to Choice List
fun toChoiceList(selectedChoices: List<T> = listOf(), widgetType: ValidatedChoiceList.WidgetType = if (this.widgetType == WidgetType.POPUP)
ValidatedChoiceList.WidgetType.POPUP
else
ValidatedChoiceList.WidgetType.INLINE): ValidatedChoiceList<T>
Converts this ValidatedChoice into a ValidatedChoiceList wrapping this choice's options, widget type, and translation providers
Return
ValidatedChoiceList with options based on this choice's options
Author
fzzyhmstrs
Since
0.6.3
Parameters
selected Choices
List<T> - The default selected choices of the resulting choice set. Can be empty.
widget Type
ValidatedChoiceList.WidgetType defines the GUI selection type. Defaults to POPUP if this choices widget type is POPUP (also default), INLINE otherwise