Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/conditonalsState"

Index

Type aliases

conditional

conditional: object

One conditional

Type declaration

conditionalCompareType

conditionalCompareType: "is" | "isnot"

How the conditonal does its comparisons

todo

All cases

conditionalId

conditionalId: string

The type of value used for conditional id

conditionalType

conditionalType: "disable" | "enable" | "hide" | "show"

The type of conditional -- what it does

conditionals

conditionals: Array<conditional>

A collection of conditionals

Functions

conditionalState

  • conditionalState(): object
  • Factory function for object to manage state of condtionals in the editor

    Returns object

    • addConditional: function
      • Add a conditional to the collection

        Parameters

        Returns boolean

    • getAllConditionals: function
      • Returns conditionals

    • getConditional: function
      • Get one conditional from collection

        Parameters

        Returns conditional | undefined

    • removeConditional: function
      • Remove a conditional from the collection

        Parameters

        Returns boolean

    • updateConditional: function
      • Update a conditional in the collection

        Parameters

        Returns boolean

Generated using TypeDoc