new BigPlayButton()
Extends
Methods
-
addChild(child, optionsopt) → {Component}
-
Add a child
Componentinside of thisButton.Parameters:
Name Type Attributes Default Description childstring | Component The name or instance of a child to add.
optionsObject <optional>
{} The key/value store of options that will get passed to children of the child.
Returns:
Component -The
Componentthat gets added as a child. When using a string theComponentwill get created by this process.- Inherited From:
- Deprecated:
- since version 5
-
buildCSSClass() → {string}
-
Builds the default DOM
className.Returns:
string -The DOM
classNamefor this object. Always returns 'vjs-big-play-button'. -
createEl(tagopt, propsopt, attributesopt) → {Element}
-
Create the
Buttons DOM element.Parameters:
Name Type Attributes Default Description tagstring <optional>
"button" The element's node type. This argument is IGNORED: no matter what is passed, it will always create a
buttonelement.propsObject <optional>
{} An object of properties that should be set on the element.
attributesObject <optional>
{} An object of attributes that should be set on the element.
Returns:
Element -The element that gets created.
- Inherited From:
-
disable()
-
Enable the
Buttonelement so that it cannot be activated or clicked. Use this with Button#enable.- Inherited From:
-
enable()
-
Enable the
Buttonelement so that it can be activated or clicked. Use this with Button#disable.- Inherited From:
-
handleClick(event)
-
This gets called when a
BigPlayButton"clicked". See ClickableComponent for more detailed information on what a click can be.Parameters:
Name Type Description eventEventTarget~Event The
keydown,tap, orclickevent that caused this function to be called.Listens to Events:
- event:tap
- event:click
-
handleKeyPress(event)
-
This gets called when a
Buttonhas focus andkeydownis triggered via a key press.Parameters:
Name Type Description eventEventTarget~Event The event that caused this function to get called.
Listens to Events:
- event:keydown
- Overrides: