Radiobutton

@JvmName(name = "Radiobutton")
fun Radiobutton(vararg entries: String, at: Vec2 = Vec2.ZERO, initial: Int = 0, fontSize: Float = 12.0f, optionLateralPadding: Float = 6.0f, optionVerticalPadding: Float = 6.0f): <Error class: unknown class>

A radiobutton component, which allows you to select one of multiple options. For images, use Image for each entry.

For both strings and images, use Image to "string".

Changes can be detected using the onChange method with an Event.Change.Number event. the best usage is:

radiobutton.onChange {

@JvmName(name = "Radiobutton")
fun Radiobutton(vararg entries: PolyImage, at: Vec2 = Vec2.ZERO, initial: Int = 0, fontSize: Float = 12.0f, optionLateralPadding: Float = 6.0f, optionVerticalPadding: Float = 6.0f): <Error class: unknown class>

For strings, use "string" for each entry.

For both strings and images, use Image to "string".


@JvmName(name = "Radiobutton")
fun Radiobutton(vararg entries: Pair<PolyImage?, String?>, at: Vec2 = Vec2.ZERO, initial: Int = 0, fontSize: Float = 12.0f, optionLateralPadding: Float = 6.0f, optionVerticalPadding: Float = 6.0f): Block

For just strings, use "string" for each entry.

For just images, use Image for each entry.

null to null is not supported, and will throw an exception.