Class: Widget

stb/ui/widget~ Widget

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
Name Type Attributes Default Description
visible boolean <optional>
false

component initial visibility state flag

focusable boolean <optional>
false

component can accept focus or not

Source:
Example
var Widget = require('stb/ui/widget'),
    widget = new Widget({
        $node: document.getElementById(id)
    });

// somewhere
widget.show();

Extends

  • Component