OSH.UI.View
Methods
-
staticOSH.UI.View.init(parentElement, viewItems, options)
-
Inits the view component.
Name Type Description parentElementThe parent html element object to attach/create the view
viewItemsthe list of items to add
options[TODO]
-
addViewItem(viewItem)
-
Add viewItem to the view
Name Type Description viewItem -
attachTo(divId)
-
Name Type Description divId -
beforeAddingItems(options)
-
Name Type Description options -
getDataSourcesId(){Array}
-
Returns:
Type Description Array -
getDivId(){string|*}
-
Returns:
Type Description string | * -
getId(){string|*}
-
Returns:
Type Description string | * -
handleEvents()
-
-
hide()
-
-
onResize()
-
-
reset()
-
-
selectDataView($super, dataSourcesIds, entitiesIds)
-
Should be called after receiving osh:SELECT_VIEW event
Name Type Description $superdataSourcesIdsentitiesIds -
setData(dataSourceId, data)
-
Name Type Description dataSourceIddata -
show(properties)
-
Show the view by removing display:none style if any.
Name Type Description properties -
shows(properties)
-
Name Type Description properties