new Button(configopt)
Base button implementation.
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
<optional> |
{} | init parameters (all inherited from the parent) Properties
|
- 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: