Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/plan/domain/StepList

Pure (DOMAIN-001): add, remove and reorder steps.

Cockpit client (features), next. Source: ui/client/features/plan/domain/StepList.ts.

Functions#

moveStep()#

moveStep(steps, id, dir): PlanStep[]

Defined in: ui/client/features/plan/domain/StepList.ts:22

Parameters#

steps

PlanStep[]

id

string

dir

-1 | 1

Returns#

PlanStep[]


newStep()#

newStep(flow, steps, counter): object

Defined in: ui/client/features/plan/domain/StepList.ts:8

Parameters#

flow

FlowInfo

steps

PlanStep[]

counter

number

Returns#

object

nextId

nextId: number

step

step: PlanStep


removeStep()#

removeStep(steps, id): PlanStep[]

Defined in: ui/client/features/plan/domain/StepList.ts:16

Parameters#

steps

PlanStep[]

id

string

Returns#

PlanStep[]