Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • FormComponent<"toggle">
    • Toggle

Index

Constructors

Properties

Methods

Constructors

  • new Toggle(data: { default?: boolean; label?: string }): Toggle
  • Creates a new toggle with the provided data

    Parameters

    • data: { default?: boolean; label?: string }

      The data to build the toggle with

      • Optional default?: boolean

        The default state for the toggle

        default

        false

      • Optional label?: string

        The label of the toggle

        default

        "Toggle"

    Returns Toggle

Properties

default: boolean

The default state for the toggle

default

false

label: string

The label of the toggle

default

"Toggle"

type: "toggle"

The type of FormComponent

Methods

  • setDef(curr: any, to: any): any

Generated using TypeDoc version 0.22.18, the 7/5/2022