Interface ActionParameter<T, M>

Parameter to accept user input within an action

interface ActionParameter<T, M> {
    label?: string;
    max?: M;
    min?: M;
    name: string;
    pattern?: string;
    patternDescription?: string;
    required?: boolean;
    type?: T;
}

Type Parameters

Properties

label?: string

placeholder text for the user input field

max?: M

the maximum value allowed based on the type

min?: M

the minimum value allowed based on the type

name: string

parameter name in url

pattern?: string

regular expression pattern to validate user input client side

patternDescription?: string

human-readable description of the type and/or pattern, represents a caption and error, if value doesn't match

required?: boolean

declare if this field is required (defaults to false)

type?: T

input field type