Class: Model

ko/ui/container~ Model


Model()

The model for the container UI element, this is what model:ko/ui/container.create returns

Properties:
Name Type Description
name string

The node name of the element

element Element

A XUL container, see https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/hbox

Extends

Methods


<static> add(appendElement, options)

Insert an element to the page

Parameters:
Name Type Description
appendElement Element | array | object | string

Element(s) to be appended. This can be a DOM element, ko/dom element or even just the name of an element. See module:ko/dom~QueryObject.hide for more information. If this is a simple object then it will be used as the options param

options object

options to be used on element, OPTIONAL


<static> addColumn(appendElement, options)

Insert a column of content to the page

Parameters:
Name Type Description
appendElement Element | array | object | string

Element(s) to be appended. This can be a DOM element, ko/dom element or even just the name of an element. See module:ko/ui/element~Model.addElement for more information. If this is a simple object then it will be used as the options param

options object

options to be used on element, OPTIONAL

Returns:
Type
module:ko/ui/column~Model

<static> addGroupbox(appendElement, options)

Insert a groupbox into the page

Parameters:
Name Type Description
appendElement Element | array | object | string

Element(s) to be appended. This can be a DOM element, ko/dom element or even just the name of an element. See module:ko/ui/element~Model.addElement for more information. If this is a simple object then it will be used as the options param

options object

options to be used on element, OPTIONAL

Returns:
Type
module:ko/ui/groupbox~Model

<static> addRow(appendElement, options)

Insert a row of content to the page

Parameters:
Name Type Description
appendElement Element | array | object | string

Element(s) to be appended. This can be a DOM element, ko/dom element or even just the name of an element. See module:ko/ui/element~Model.addElement for more information. If this is a simple object then it will be used as the options param

options object

options to be used on element, OPTIONAL

Returns:
Type
module:ko/ui/row~Model