group Choice
fun <T : OptionGroup> RawOption.groupChoice(choices: Map<String, T>): ChoiceGroup<T, T?>
Content copied to clipboard
Convert the option to an option group based on a fixed set of values.
Example:
option().groupChoice(mapOf("foo" to FooOptionGroup(), "bar" to BarOptionGroup()))
Content copied to clipboard
See also
fun <T : OptionGroup> RawOption.groupChoice(vararg choices: <ERROR CLASS><String, T>): ChoiceGroup<T, T?>
Content copied to clipboard
Convert the option to an option group based on a fixed set of values.
Example:
option().groupChoice("foo" to FooOptionGroup(), "bar" to BarOptionGroup())
Content copied to clipboard