A class representing a toggle button.

Param: o

The button options

Param: o.isToggled

Determines whether the button is on or off

Hierarchy

  • BaseSetting
    • ToggleSetting

Constructors

Properties

Methods

Constructors

Properties

element: Element

The element that the component uses

id: string

The HTML ID of the component

isToggled: boolean

The flag that shows if the component is toggled

name: string

The name of the component

triggerElement: Element

The main element that the component is triggered from

Methods

  • A function that toggles the button component. THIS WILL NOT TRIGGER ANY EVENT LISTENERS

    Returns void

Generated using TypeDoc