Class sap.ca.ui.HierarchyModule: sap/ca/ui/Hierarchy
Display the Hierarchy of an item. Useful to indicates where an object stand in a chain of hierarchical data. The emphasized item shows the one item to display. Optional item can be hidden using the hideOptionalLevels property. Hidden items will stay accessible with an expand button.
Deprecated API:Since version 1.24.3. This control is not required anymore as per central UX requirements. This control will not be supported anymore.
sClassName
and enriches it with the information contained in oClassInfo
.sap.ca.ui.HierarchyItem
in the aggregation named items
and returns its index if found or -1 otherwise. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers.
If the name of a setting is ambiguous (e.g. a property has the same name as an event), then the framework assumes property, aggregation, association, event in that order. To override this automatic resolution, one of the prefixes "aggregation:", "association:" or "event:" can be added to the name of the setting (such a prefixed name must be enclosed in single or double quotes).
The supported settings are:
- Properties
- hideOptionalLevels : boolean (default: true)
- Aggregations
- items : sap.ca.ui.HierarchyItem[]
- Associations
- Events
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
- Deprecated:
- Since version 1.24.3. This control is not required anymore as per central UX requirements. This control will not be supported anymore.
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of informations as described in Element.extend.
{string} | sClassName | name of the class to be created |
{object} | oClassInfo? | object literal with informations about the class |
{function} | FNMetaImpl? | constructor function for the metadata object. If not given, it defaults to sap.ui.core.ElementMetadata. |
{function} | the created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
oItem
to the aggregation named items
. {sap.ca.ui.HierarchyItem} | oItem | the item to add; if empty, nothing is inserted |
{sap.ca.ui.Hierarchy} | this to allow method chaining |
items
. {string} | sPath | path to a list in the model |
{sap.ui.core.Element} | oTemplate | the control template for this aggregation |
{sap.ui.model.Sorter} | oSorter | the initial sort order (optional) |
{array} | aFilters | the predefined filters for this aggregation (optional) |
{sap.ca.ui.Hierarchy} | this to allow method chaining |
items
. {sap.ca.ui.Hierarchy} | this to allow method chaining |
hideOptionalLevels
. Hide the levels marked optional. An expand button will appear Default value is true
{boolean} | the value of property hideOptionalLevels |
items
.The array of HierarchyItem ordered and starting from the root hierarchy
{sap.ca.ui.HierarchyItem[]} |
sap.ca.ui.HierarchyItem
in the aggregation named items
and returns its index if found or -1 otherwise. {sap.ca.ui.HierarchyItem} | oItem | the item whose index is looked for. |
{int} | the index of the provided control in the aggregation if found, or -1 otherwise |
items
. {sap.ca.ui.HierarchyItem} | oItem | the item to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the item should be inserted at; for a negative value of iIndex , the item is inserted at position 0; for a value greater than the current size of the aggregation, the item is inserted at the last position |
{sap.ca.ui.Hierarchy} | this to allow method chaining |
items
.Additionally unregisters them from the hosting UIArea.
{sap.ca.ui.HierarchyItem[]} | an array of the removed elements (might be empty) |
items
. {int|string|sap.ca.ui.HierarchyItem} | vItem | the item to remove or its index or id |
{sap.ca.ui.HierarchyItem} | the removed item or null |
hideOptionalLevels
. Default value is true
{boolean} | bHideOptionalLevels | new value for property hideOptionalLevels |
{sap.ca.ui.Hierarchy} | this to allow method chaining |
items
. {sap.ca.ui.Hierarchy} | this to allow method chaining |