Skip to content

@sebasoft/neuron-js


Defined in: plugins/parameters/SimpleSelectParameter.ts:13

Represents a configurable input value for Actions and Conditions. Parameters allow for reusable logic templates by decoupling the implementation from the values.

Extends

Constructors

Constructor

new SimpleSelectParameter(id, type, name, value, options, defaultValue?): SimpleSelectParameter

Defined in: abstracts/AbstractParameter.ts:9

Parameters

id

string

type

string

name

string

value

string | null

options

SelectOptions

defaultValue?

string

Returns

SimpleSelectParameter

Inherited from

AbstractParameter.constructor

Properties

defaultValue?

readonly optional defaultValue?: string

Defined in: abstracts/AbstractParameter.ts:15

An optional fallback value if the primary value is missing or null.

Inherited from

AbstractParameter.defaultValue


id

readonly id: string

Defined in: abstracts/AbstractElement.ts:7

Unique identifier for the element instance.

Inherited from

AbstractParameter.id


name

readonly name: string

Defined in: abstracts/AbstractParameter.ts:12

The semantic name of the parameter (e.g., "recipient", "threshold").

Inherited from

AbstractParameter.name


options

readonly options: SelectOptions

Defined in: abstracts/AbstractElement.ts:9

Configuration options specific to this element instance.

Inherited from

AbstractParameter.options


type

readonly type: string

Defined in: abstracts/AbstractElement.ts:8

The registered type name of the element. This type is used by the Registry (Neuron) to look up the correct implementation.

Inherited from

AbstractParameter.type


value

value: string | null

Defined in: abstracts/AbstractParameter.ts:13

The actual value assigned to the parameter.

Inherited from

AbstractParameter.value


TYPE

readonly static TYPE: "simple_select" = "simple_select"

Defined in: plugins/parameters/SimpleSelectParameter.ts:17

Methods

getDisplayLabel()

getDisplayLabel(): string

Defined in: plugins/parameters/SimpleSelectParameter.ts:30

Returns

string


getValue()

getValue(_context): string | null

Defined in: plugins/parameters/SimpleSelectParameter.ts:19

Parameters

_context

ExecutionContext

Returns

string | null

Overrides

AbstractParameter.getValue


toJSON()

toJSON(): object

Defined in: abstracts/AbstractParameter.ts:22

Returns

object

Inherited from

AbstractParameter.toJSON