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.
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 |