new Panel(configopt)
Base panel implementation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
config |
Object |
<optional> |
{} | init parameters (all inherited from the parent) |
- Source:
Example
var Panel = require('stb/ui/panel'),
panel = new Panel({
$node: document.getElementById('someId'),
children: [
new Panel({
$node: document.getElementById('anotherId')
})
]
});
panel.add(
new Button(),
new Button(),
new Button()
);
page.add(panel);
Extends
- Component