dropdown

fun RenderContext.dropdown(styling: BasicParams.() -> Unit = {}, baseClass: StyleClass = StyleClass.None, id: String? = null, prefix: String = "dropdown", build: DropdownComponent.() -> Unit)

Creates a dropdown.

Parameters

styling

a lambda expression for declaring the styling of the actual dropdown as fritz2's styling DSL

baseClass

optional CSS class that should be applied to the dropdown

id

the ID of the dropdown/toggle container

prefix

the prefix for the dropdown's generated CSS class resulting in the form `$prefix-$hash`

build

a lambda expression for setting up the component itself.