textArea

fun RenderContext.textArea(    styling: BasicParams.() -> Unit = {},     value: Store<String>? = null,     baseClass: StyleClass = StyleClass.None,     id: String? = value?.id,     prefix: String = "textArea",     build: TextAreaComponent.() -> Unit): TextArea

This component generates a TextArea.

You can optionally pass a store in order to set the value and react to updates automatically.

Basic usage

textArea(value = dataStore) {
placeholder { "My placeholder" }
}

See also

Parameters

styling

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

value

optional Store that holds the data of the textarea

baseClass

optional CSS class that should be applied to the element

id

the ID of the element

prefix

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

build

a lambda expression for setting up the component itself. Details in TextAreaComponent