Class: Model

ko/ui/list~ Model


Model()

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

Properties:
Name Type Description
name string

The node name of the element

element Element

A XUL vbox

Extends

Methods


<static> addEntries(items)

Add items to the list

Parameters:
Name Type Description
items array

Array of items to add, this calls addEntry() for each item


<static> addEntry(item)

Add an item to the container

Parameters:
Name Type Description
item mixed

item to be added to the container. Can be String (label), ko/ui/, ko/dom element, DOM element, option object. option object refers to an Options object used throughout this SDK. The options should contain an attributes property to assign a label at the very least: { label: "itemLabel" }