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 -
inherited attachTo(divId)
-
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 | * -
inherited getId(){string|*}
-
Returns:
Type Description string | * -
inherited handleEvents()
-
-
inherited hide()
-
-
initTree(options)
-
Name Type Description options -
inherited onResize()
-
-
inherited reset()
-
-
selectDataView(dataSourcesIds, entityId)
-
Name Type Description dataSourcesIdsentityId -
inherited setData(dataSourceId, data)
-
Name Type Description dataSourceIddata -
inherited show(properties)
-
Show the view by removing display:none style if any.
Name Type Description properties -
inherited shows(properties)
-
Name Type Description properties