text

fun text(name: String, value: String, label: String = "", description: String = "", display: ParameterDisplay = ParameterDisplay.NORMAL, readOnly: Boolean = false, allowEmpty: Boolean)

Adds a text parameter

Parameters

name

parameter name

value

parameter value

label

label to use for the parameter in UI

description

parameter description

display

parameter display mode

readOnly

whether the parameter is read-only, by default false

allowEmpty

whether the empty value is allowed for this parameter


fun text(name: String, value: String, label: String = "", description: String = "", display: ParameterDisplay = ParameterDisplay.NORMAL, readOnly: Boolean = false, regex: String = "", validationMessage: String = "")

Adds a text parameter validated by the specified regex

Parameters

name

parameter name

value

parameter value

label

label to use for the parameter in UI

description

parameter description

display

parameter display mode

readOnly

whether the parameter is read-only, by default false

regex

regex to use for validation

validationMessage

message to show if validation fails