Class: Button

stb/ui/button~ Button

new Button(configopt)

Base button implementation.

Parameters:
Name Type Attributes Default Description
config Object <optional>
{}

init parameters (all inherited from the parent)

Properties
Name Type Attributes Default Description
value string <optional>

button caption text (generated if not set)

icon string <optional>
false

button icon name

Source:
Example
var Button = require('stb/ui/button'),
    button = new Button({
        $node: document.getElementById(id),
        icon: 'menu'
        value: 'Apply changes'
    });

Extends

  • Component

Events

click

Mouse click event emulation.

Type:
  • Object
Properties:
Name Type Description
event Event

click event data

Source: