NumberField

constructor(label: String, initialValue: Num, fromString: (String) -> Num, toString: (Num) -> String = { it.toString() }, inputType: NumberField.InputType = InputType.TextField(), valueCode: (Num) -> String)

Parameters

label

label of the field.

initialValue

initial value of the field.

fromString

Function to convert a string to the numeric type of this Field.

toString

Function to convert the numeric type of this Field to a string.

inputType

InputType, specifies how values are made available for input in the UI. See InputType.