class sap.ui.model.json.JSONTreeBinding

Visiblity: protected
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/model/json/JSONTreeBinding
Application Component: CA-UI5-COR

Tree binding implementation for JSON format.

The bound data can contain JSON objects and arrays. Both will be used to build the tree structure. You can optionally define a set of arrays to be used for the tree structure in the parameter arrayNames. If this parameter is set, all other objects and arrays will be ignored.


Constructor

Creates a new JSONListBinding.

This constructor should only be called by subclasses or model implementations, not by application or control code. Such code should use JSONModel#bindTree on the corresponding model instance instead.

new sap.ui.model.json.JSONTreeBinding(oModel, sPath, oContext?, aFilters?, mParameters?)
Param Type Default Value Description
oModel sap.ui.model.json.JSONModel

Model instance that this binding is created for and that it belongs to

sPath string

Path pointing to the tree or array that should be bound

oContext? object

Context object for this binding, mandatory when a relative binding path is given

aFilters? sap.ui.model.Filter sap.ui.model.Filter[]

Predefined filters contained in an array

mParameters? object

Additional model-specific parameters

arrayNames? string[]

Keys of arrays to be used for building the tree structure. If not specified, all arrays and objects in the bound data will be used. Note that for arrays nested inside differently named arrays, you need to add both to arrayNames. You always have to add the complete parent chain. If any array is ignored, its child arrays will be ignored as well even if they have been added to arrayNames.