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
read Only
whether the parameter is read-only, by default false
allow Empty
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
read Only
whether the parameter is read-only, by default false
regex
regex to use for validation
validation Message
message to show if validation fails