Class sap.gantt.config.HierarchyModule: sap/gantt/config/Hierarchy
Defines the hierarchy in the Gantt chart. The hierarchy is used for building the tree table in sap.gantt.GanttChartWithTable.
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers.
sClassName
and enriches it with the information contained in oClassInfo
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- key : string (default: sap.gantt.config.DEFAULT_HIERARCHY_KEY)
- text : string (default: Default Hierarchy)
- activeModeKey : string (default: sap.gantt.config.DEFAULT_MODE_KEY)
- toolbarSchemeKey : string (default: sap.gantt.config.DEFAULT_GANTTCHART_TOOLBAR_SCHEME_KEY)
- columns : array
- expandedLevels : array
In addition, all settings applicable to the base type sap.ui.core.Element can be used as well.
{string} | sId? | ID of the new control, generated automatically if no ID is given |
{object} | mSettings? | Initial settings for the new control |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.core.Element.extend.
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
activeModeKey
. Key of sap.gantt.config.Mode
Default value is sap.gantt.config.DEFAULT_MODE_KEY
.
{string} | Value of property activeModeKey |
columns
. Columns of the hierarchy. Array of sap.gantt.config.HierarchyColumn
{array} | Value of property columns |
expandedLevels
. expandedLevels determines how the tree table is initially expanded. This property is a two-dimensional array containing object types of row data. Only rows with data of the specified object types are expanded. Each child array represents a specific level in the hierarchy with the first child array representing the first level and so forth. For example, if this property is set to [["02", "03"], ["05"]], rows containing data of object types 02 or 03 in the first level and rows containing data of object type 05 in the second level are expanded.
{array} | Value of property expandedLevels |
key
. Unique key of the hierarchy
Default value is sap.gantt.config.DEFAULT_HIERARCHY_KEY
.
{string} | Value of property key |
text
. Description of the hierarchy
Default value is Default Hierarchy
.
{string} | Value of property text |
toolbarSchemeKey
. Key of sap.gantt.config.ToolbarScheme
Default value is sap.gantt.config.DEFAULT_GANTTCHART_TOOLBAR_SCHEME_KEY
.
{string} | Value of property toolbarSchemeKey |
activeModeKey
. Key of sap.gantt.config.Mode
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is sap.gantt.config.DEFAULT_MODE_KEY
.
{string} | sActiveModeKey | New value for property activeModeKey |
{sap.gantt.config.Hierarchy} | Reference to this in order to allow method chaining |
columns
. Columns of the hierarchy. Array of sap.gantt.config.HierarchyColumn
When called with a value of null
or undefined
, the default value of the property will be restored.
{array} | sColumns | New value for property columns |
{sap.gantt.config.Hierarchy} | Reference to this in order to allow method chaining |
expandedLevels
. expandedLevels determines how the tree table is initially expanded. This property is a two-dimensional array containing object types of row data. Only rows with data of the specified object types are expanded. Each child array represents a specific level in the hierarchy with the first child array representing the first level and so forth. For example, if this property is set to [["02", "03"], ["05"]], rows containing data of object types 02 or 03 in the first level and rows containing data of object type 05 in the second level are expanded.
When called with a value of null
or undefined
, the default value of the property will be restored.
{array} | sExpandedLevels | New value for property expandedLevels |
{sap.gantt.config.Hierarchy} | Reference to this in order to allow method chaining |
key
. Unique key of the hierarchy
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is sap.gantt.config.DEFAULT_HIERARCHY_KEY
.
{string} | sKey | New value for property key |
{sap.gantt.config.Hierarchy} | Reference to this in order to allow method chaining |
text
. Description of the hierarchy
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Default Hierarchy
.
{string} | sText | New value for property text |
{sap.gantt.config.Hierarchy} | Reference to this in order to allow method chaining |
toolbarSchemeKey
. Key of sap.gantt.config.ToolbarScheme
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is sap.gantt.config.DEFAULT_GANTTCHART_TOOLBAR_SCHEME_KEY
.
{string} | sToolbarSchemeKey | New value for property toolbarSchemeKey |
{sap.gantt.config.Hierarchy} | Reference to this in order to allow method chaining |