Namespace sap.gantt.configModule: sap/gantt/library
Namespace sap.gantt.config
provides all configuration related objects and default configuration value for optional ones.
sap.gantt.GanttChartContainer
.sap.gantt.GanttChartContainer
.sap.gantt.GanttChartWithTable
.sap.gantt.GanttChartBase
.Default values:
- key -
sap.gantt.config.DEFAULT_CHART_SCHEME_KEY
- name - "Default"
- rowSpan - 1
- icon - null
- modeKey -
sap.gantt.config.DEFAULT_MODE_KEY
- shapeKeys - []
The Default Chart Scheme Key is used in the default chart scheme configuration.
Default values is sap.gantt.config.DEFAULT_CHART_SCHEME
Default values:
- key -
sap.gantt.config.DEFAULT_CONTAINER_DUAL_LAYOUT_KEY
- text - "Dual Gantt Chart Layout"
- toolbarSchemeKey -
sap.gantt.config.DEFAULT_CONTAINER_TOOLBAR_SCHEME_KEY
- ganttChartLayouts -
[new sap.gantt.config.GanttChartLayout({ activeModeKey: sap.gantt.config.DEFAULT_MODE_KEY, hierarchyKey: sap.gantt.config.DEFAULT_HIERARCHY_KEY }), new sap.gantt.config.GanttChartLayout({ activeModeKey: sap.gantt.config.DEFAULT_MODE_KEY, hierarchyKey: sap.gantt.config.DEFAULT_HIERARCHY_KEY })]
The default Gantt dual-view layout key is used in the default Gantt dual layout configuration.
Default values are a single-view layout and a dual-view layout.
Default values:
- key -
sap.gantt.config.DEFAULT_CONTAINER_SINGLE_LAYOUT_KEY
- text - "Single Gantt Chart Layout"
- toolbarSchemeKey -
sap.gantt.config.DEFAULT_CONTAINER_TOOLBAR_SCHEME_KEY
- ganttChartLayouts -
[new sap.gantt.config.GanttChartLayout({ activeModeKey: sap.gantt.config.DEFAULT_MODE_KEY, hierarchyKey: sap.gantt.config.DEFAULT_HIERARCHY_KEY })]
The default Gantt single layout key is used in the default Gantt single layout configuration.
sap.gantt.GanttChartContainer
. Default values:
- key -
sap.gantt.config.DEFAULT_CONTAINER_TOOLBAR_SCHEME_KEY
- customToolbarItems -
sap.gantt.config.ToolbarGroup({ position: "L1", overflowPriority: sap.m.OverflowToolbarPriority.High })
- timeZoom -
sap.gantt.config.ToolbarGroup({ position: "R2", overflowPriority: sap.m.OverflowToolbarPriority.NeverOverflow })
- settings -
sap.gantt.config.ToolbarGroup({ position: "R1", overflowPriority: sap.m.OverflowToolbarPriority.low, items: sap.gantt.config.DEFAULT_TOOLBAR_SETTING_ITEMS })
The default GanttContainer toolbar scheme key is used in the default GanttContainer toolbar scheme configuration.
sap.gantt.GanttChartContainer
. The default values include an empty toolbar and a default Gantt Chart Container toolbar.
sap.gantt.GanttChartWithTable
. Default values:
- key -
sap.gantt.config.DEFAULT_GANTTCHART_TOOLBAR_SCHEME_KEY
- customToolbarItems -
sap.gantt.config.ToolbarGroup({ position: "L2", overflowPriority: sap.m.OverflowToolbarPriority.High })
- expandTree -
sap.gantt.config.ToolbarGroup({ position: "L3", overflowPriority: sap.m.OverflowToolbarPriority.Low })
The default GanttWithTable toolbar scheme key is used in the default GanttWithTable toolbar scheme configuration.
sap.gantt.GanttChartBase
. The default values include an empty toolbar and a default Gantt Chart toolbar.
Default values:
- key -
sap.gantt.config.DEFAULT_HIERARCHY_KEY
- text - "Default Hierarchy"
- activeModeKey -
sap.gantt.config.DEFAULT_MODE_KEY
- toolbarSchemeKey -
sap.gantt.config.DEFAULT_GANTTCHART_TOOLBAR_SCHEME_KEY
- columns - null
- expandedLevels - null
The default hierarchy key is used in the default hierarchy configuration.
The default value is sap.gantt.config.DEFAULT_HIERARCHY
From one month ago, to one month from now.
Default values
- timeZoine -
"CET"
- utcdiff -
"000000"
- utcsign -
"+"
Default values are:
- key -
sap.gantt.config.DEFAULT_MODE_KEY
- text - "Default"
- icon -
"sap-icon://status-positive"
The default mode key is used in Gantt and the default mode configuration is used when no mode configuration is provided.
Default value: sap.gantt.config.DEFAULT_MODE
.
Default values:
- key -
sap.gantt.config.DEFAULT_OBJECT_TYPE_KEY
- description - "Default"
- mainChartSchemeKey -
sap.gantt.config.DEFAULT_CHART_SCHEME_KEY
- expandedChartSchemeKeys - []
Default object type key is used in the default object type configuration.
The default value is sap.gantt.config.DEFAULT_OBJECT_TYPE
.
From one year ago, to one year from now.
Default values are:
- planHorizon -
sap.gantt.config.DEFAULT_PLAN_HORIZON
- initHorizon -
sap.gantt.config.DEFAULT_INIT_HORIZON
- zoomStrategy -
sap.gantt.config.DEFAULT_TIME_ZOOM_STRATEGY
- finestGranularity - "15min"
- coarsestGranularity - "6month"
- rate> - 1
The default time zoom level includes a granularity factor that determines the length of the interval between neighboring vertical lines.
The time zoom level now is a JSON object with the granularity as the key and some internal information such as formatting. Each level has 3 interval objects describing the time unit, the time span, and the jump condition to the next level. The zoom level decides how the time axis behaves and how ticks are displayed.
Take "12hour"
level for example
"12hour":
- Granularity level ID."innerInterval"
- Time interval between neighboring vertical lines is 12 hours. The jump condition to the next level is "1day" when the interval exceeds 90 pixels."unit": sap.gantt.config.TimeUnit.hour
- Time unit is hour."span": 12
- Span is 12."range": 90
- Jumping condition is 90 pixels between neighboring vertical lines.
largeInterval
- Time interval of top row along the time axis is 1 day. Formatted in the locale language with the format string. This zoom level implements an interval larger than the interval in the default zoom level."unit": sap.gantt.config.TimeUnit.day
-"span": 1
- Time span is 1."format": "cccc dd.M.yyyy"
- Formats the string in CLDR date/time symbols.
smallInterval
- Time interval of the bottom row along the time axis is 12 hours. Formatted in the locale language with the format string. This zoom level implements an interval the same as the interval in the default zoom level."unit": sap.gantt.config.TimeUnit.hour
- Time unit is hour."span": 12
- Time span is 12."format": "HH:mm"
- Formats the string in CLDR date/time symbols.
The current granularity setting provides the following values in the default time zoom level:
5min
, 10min
, 15min
, 30min
,
1hour
, 2hour
, 4hour
, 6hour
, 12hour
,
1day
, 2day
, 4day
,
1week
, 2week
,
1month
, 2month
, 4month
, 6month
,
1year
, 2year
, 5year
.
Default values:
sap.gantt.config.SETTING_ITEM_ENABLE_NOW_LINE
sap.gantt.config.SETTING_ITEM_ENABLE_CURSOR_LINE
sap.gantt.config.SETTING_ITEM_ENABLE_VERTICAL_LINE
sap.gantt.config.SETTING_ITEM_ENABLE_TIME_SCROLL_SYNC
This toolbar scheme has no built-in toolbar items. Only one toolbar group customToolbarItems
is configured to allow applications to place custom toolbar items. Default values:
- key -
sap.gantt.config.EMPTY_TOOLBAR_SCHEME_KEY
- customToolbarItems -
sap.gantt.config.ToolbarGroup({ position: "L1", overflowPriority: sap.m.OverflowToolbarPriority.High })
The default empty toolbar scheme key is used in the default empty toolbar scheme.
- key -
sap.gantt.config.SETTING_ITEM_ENABLE_CURSOR_LINE_KEY
- checked - true
- displayText - "Show Cursor Line"
- tooltip - "Show a Vertical Line that Follows the Mouse Pointer"
Default setting item key for the cursor line is used in the default settings group configuration.
- key -
sap.gantt.config.SETTING_ITEM_ENABLE_NOW_LINE_KEY
- checked - true
- displayText - "Indicate Current Time"
- tooltip - "Draw a Vertical Line to Indicate the Current Time"
Default setting item key for the present time indicator is used in the default settings group configuration.
- key -
sap.gantt.config.SETTING_ITEM_ENABLE_TIME_SCROLL_SYNC_KEY
- checked - true
- displayText - "Synchronize Time Scroll"
- tooltip - "Synchronize Horizontal Scroll Bars in Chart"
Default setting item key for synchronized time scroll is used in the default settings group configuration.
- key -
sap.gantt.config.SETTING_ITEM_ENABLE_VERTICAL_LINE_KEY
- checked - true
- displayText - "Show Divider Lines"
- tooltip - "Show Vertical Divider Lines between Time Periods"