Namespace: View

OSH.UI. View

OSH.UI.View

Methods

staticOSH.UI.View.init(parentElement, viewItems, options)

Inits the view component.

Name Type Description
parentElement

The parent html element object to attach/create the view

viewItems

the 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 | *

selectDataView($super, dataSourcesIds, entitiesIds)

Should be called after receiving osh:SELECT_VIEW event

Name Type Description
$super
dataSourcesIds
entitiesIds

setData(dataSourceId, data)

Name Type Description
dataSourceId
data

show(properties)

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

Name Type Description
properties

shows(properties)

Name Type Description
properties