new Widget(configopt)
Base widget implementation.
A part-screen top-level layer that can operate as an independent separate entity.
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
<optional> |
{} | init parameters (all inherited from the parent) Properties
|
- Source:
Example
var Widget = require('stb/ui/widget'),
widget = new Widget({
$node: document.getElementById(id)
});
// somewhere
widget.show();
Extends
- Component