Generic Radio Group Input
constructor(options: List<<Error class: unknown class><T, String>>? = null, value: T? = null, name: String? = null, inline: Boolean = false, toStr: (T) -> String = {
it.toString()
}, fromStr: (String) -> T? = {
@Suppress("UNCHECKED_CAST")
it as? T
}, init: GenericRadioGroupInput<T>.() -> Unit? = null)
Parameters
options
an optional list of options (label to value pairs) for the group
value
selected option
name
the name attribute of the generated HTML input element
inline
determines if the options are rendered inline
to Str
converter from T to String (defaults to toString())
from Str
converter from String to T (defaults to cast)
init
an initializer extension function