<theoplayer-button> - A basic button.

Attribute

disabled - Whether the button is disabled. When disabled, the button cannot be clicked.

Hierarchy (view full)

Constructors

  • Creates a basic button.

    By default, the button renders the contents of its direct children (i.e. it has a single unnamed <slot>). Subclasses can override this by passing a different ButtonOptions.template in the options, using buttonTemplate to correctly style the custom template.

    Parameters

    Returns Button

Accessors

  • get disabled(): boolean
  • Whether the button is disabled.

    When disabled, the button cannot be clicked.

    Returns boolean

  • set disabled(disabled): void
  • Parameters

    • disabled: boolean

    Returns void

Methods

  • Parameters

    • attrName: string
    • oldValue: any
    • newValue: any

    Returns void

  • Handle a button click.

    By default, this does nothing. Subclasses can override this method to add behavior to the button.

    Returns void

Generated using TypeDoc