option

inline fun StringSelectBuilder.option(label: String, value: String, builder: SelectOptionBuilder.() -> Unit = {})(source)

Adds a new option to the select menu with the given label and value that can be configured by the builder.

Parameters

label

The user-facing name of the option, max 100 characters.

value

The dev-defined value of the option, max 100 characters.