Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "switch"

Index

Type aliases

SavedStates

SavedStates: object

Type declaration

  • [switchName: string]: string

SelectedSwitchOptions

SelectedSwitchOptions: object

Repository of selected switch options.

Type declaration

Variables

Const BUTTONS

BUTTONS: Button[] = []

Const KEY_SWITCH_STATES

KEY_SWITCH_STATES: "vsdSwitchStates" = "vsdSwitchStates"

Let nextButtonId

nextButtonId: number = -1

Let switchStates

switchStates: SelectedSwitchOptions

Functions

changeSwitch

  • changeSwitch(): Promise<void>
  • Changes a switch target.

    Returns Promise<void>

getCurrentOptionOf

getSelectedSwitchOptions

getSwitchName

getSwitchOptionName

getSwitches

getTargetOptionsOf

isSwitch

printSwitchStates

  • printSwitchStates(): void

reloadButtons

  • reloadButtons(): void
  • Reloads the switch buttons.

    Returns void

reloadTargetStates

  • reloadTargetStates(): void
  • Reloads the target states for switches.

    Returns void

resetTargetStates

  • resetTargetStates(): void
  • Resets all target states for switches.

    Returns void

saveStates

  • saveStates(): Promise<void>
  • Saves the states to the current workspace.

    Returns Promise<void>

selectTargetOption

setCurrentOptionFor

updateButtons

  • updateButtons(): void

Generated using TypeDoc