Class: EntityTreeView

OSH.UI. EntityTreeView

new OSH.UI.EntityTreeView(parentElement, entityItems, options)

Name Type Description
parentElement Object

The parent html element to attach the view

entityItems Array

The entity items array

options Object

the OSH.View options

Example

var entityTreeView = new OSH.UI.EntityTreeView(entityTreeDialog.popContentDiv.id,
[{
entity : androidEntity,
path: "Sensors/Toulouse",
treeIcon : "images/android_icon.png",
contextMenuId: stackContextMenuId
}],
{
css: "tree-container"
}
);

Extends

Methods

inherited addViewItem(viewItem)

Add viewItem to the view

Name Type Description
viewItem
Name Type Description
divId

inherited beforeAddingItems(options)

Name Type Description
options

inherited getDataSourcesId(){Array}

Returns:
Type Description
Array

inherited getDivId(){string|*}

Returns:
Type Description
string | *
Returns:
Type Description
string | *
Name Type Description
options

selectDataView(dataSourcesIds, entityId)

Name Type Description
dataSourcesIds
entityId

inherited setData(dataSourceId, data)

Name Type Description
dataSourceId
data

Show the view by removing display:none style if any.

Name Type Description
properties
Name Type Description
properties