simple-canvas-library
    Preparing search index...

    Class Button

    Button UI component

    Hierarchy

    • UIComponent
      • Button
    Index

    Constructors

    • Parameters

      • config: ButtonConfig

      Returns Button

    Properties

    element: HTMLElement
    isEnabled: boolean = true
    isVisible: boolean = true

    Methods

    • Disable the component

      Returns this

    • Enable the component

      Returns this

    • Get the underlying DOM element

      Returns HTMLElement

    • Check if the component is enabled

      Returns boolean

    • Check if the component is visible

      Returns boolean

    • Get the current button text

      Returns string

    • Hide the component

      Returns this

    • Update the button text

      Parameters

      • text: string

      Returns this

    • Show the component

      Returns this