Button

Hierarchy

  • IButton

Properties

disable: (() => void)

Type declaration

    • (): void
    • Disables the button.

      Returns void

el: HTMLAnchorElement | HTMLButtonElement

The element.

enable: (() => void)

Type declaration

    • (): void
    • Enables the button.

      Returns void

hide: (() => void)

Type declaration

    • (): void
    • Hides the button.

      Returns void

setIcon: ((iconType, iconSize, iconClassName?) => void)

Type declaration

    • (iconType, iconSize, iconClassName?): void
    • Updates the icon.

      Parameters

      • iconType: Function
      • iconSize: number
      • Optional iconClassName: string

      Returns void

setText: ((btnText?) => void)

Type declaration

    • (btnText?): void
    • Updates the button text.

      Parameters

      • Optional btnText: string

      Returns void

setType: ((btnType) => void)

Type declaration

    • (btnType): void
    • Updates the button type.

      Parameters

      • btnType: number

      Returns void

show: (() => void)

Type declaration

    • (): void
    • Shows the button.

      Returns void

toggle: (() => void)

Type declaration

    • (): void
    • Toggles push state. Gives the button the appearance that it has been activated.

      Returns void

Generated using TypeDoc