render

open override fun render(context: RenderContext, styling: BoxParams.() -> Unit, baseClass: StyleClass, id: String?, prefix: String)

Central method that should do the actual rendering of a component.

Consider to declare your implementation as `open` in order to allow the customization of a component.

Parameters

baseClass

optional CSS class that should be applied to the element

context

the receiver to render the component into

id

the ID of the element

prefix

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

styling

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