select

fun select(name: String, value: String, label: String = "", description: String = "", display: ParameterDisplay = ParameterDisplay.NORMAL, readOnly: Boolean = false, allowMultiple: Boolean = false, valueSeparator: String = ",", options: List<Any> = listOf())

Adds a parameter with predefined set of possible values

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

allowMultiple

whether multiple selected values are allowed

valueSeparator

separator to use for multiple values, by default ,

options

possible parameter values. A string representation of an object in the list is used both as a option value and as a label in UI, unless it is a Pair, in which case a string representation of its first component is used as a label and a string representation of the second component is used as a value