API Docs for: 3.8.0
Show:

ButtonCore Class

Defined in: button/js/core.js:10
Module: button-core

Creates a button

Constructor

ButtonCore

(
  • config
)

Parameters:

  • config Object

    Configuration object

Methods

_getLabel

() private

Getter for a button's 'label' ATTR

_initAttributes

(
  • config
)
private

Attribute initializer

Parameters:

  • config Object

    Config object.

_initNode

(
  • config
)
private

Node initializer

Parameters:

  • config Object

    Config object.

_uiSetDisabled

(
  • value
)
private

Setter for the 'disabled' ATTR

Parameters:

_uiSetLabel

(
  • label
)
private

Setter for a button's 'label' ATTR

Parameters:

disable

() public

Sets the button's disabled DOM attribute to true

enable

() public

Sets the button's disabled DOM attribute to false

getNode

() public

Gets the host node for this button instance

initializer

(
  • config
)
private

Internal init() handler.

Parameters:

  • config Object

    Config object.

renderUI

(
  • config
)
private

Renders any UI/DOM elements for Button instances

Parameters:

  • config Object

    Config object.

Properties

ATTRS

Object private static

Attribute configuration.

CLASS_NAMES

Object public static

Array of static constants used to identify the classnames applied to DOM nodes

CLASS_NAMES

Object private static

Array of static constants used to for applying ARIA states

CLASS_NAMES

Object private static

Array of static constants used to for applying ARIA roles

NAME

String static

Name of this component.