Class sap.gantt.config.TimeAxisModule: sap/gantt/config/TimeAxis
Defines the time axis of a Gantt chart
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
- planHorizon : sap.gantt.config.TimeHorizon (default: sap.gantt.config.DEFAULT_PLAN_HORIZON)
- initHorizon : sap.gantt.config.TimeHorizon (default: sap.gantt.config.DEFAULT_INIT_HORIZON)
- zoomStrategy : object (default: sap.gantt.config.DEFAULT_TIME_ZOOM_STRATEGY)
- granularity : string (default: 4day)
- finestGranularity : string (default: 5min)
- coarsestGranularity : string (default: 1month)
- rate : float (default: 1)
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 |
coarsestGranularity
. Granularity when the GanttChart is zoomed out to the minimum
Default value is 1month
.
{string} | Value of property coarsestGranularity |
finestGranularity
. Granularity when the Gantt chart is zoomed in to the maximum
Default value is 5min
.
{string} | Value of property finestGranularity |
granularity
. Initial granularity of the time axis
Default value is 4day
.
{string} | Value of property granularity |
initHorizon
. Time horizon which is displayed after the Gantt chart is initialized
Default value is sap.gantt.config.DEFAULT_INIT_HORIZON
.
{sap.gantt.config.TimeHorizon} | Value of property initHorizon |
planHorizon
. Whole time horizon of the Gantt chart
Default value is sap.gantt.config.DEFAULT_PLAN_HORIZON
.
{sap.gantt.config.TimeHorizon} | Value of property planHorizon |
rate
. Zoom rate of the Gantt chart
Default value is 1
.
{float} | Value of property rate |
zoomStrategy
. Zoom strategy of the Gantt chart See sap.gantt.config.DEFAULT_TIME_ZOOM_STRATEGY as example
Default value is sap.gantt.config.DEFAULT_TIME_ZOOM_STRATEGY
.
{object} | Value of property zoomStrategy |
coarsestGranularity
. Granularity when the GanttChart is zoomed out to the minimum
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 1month
.
{string} | sCoarsestGranularity | New value for property coarsestGranularity |
{sap.gantt.config.TimeAxis} | Reference to this in order to allow method chaining |
finestGranularity
. Granularity when the Gantt chart is zoomed in to the maximum
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 5min
.
{string} | sFinestGranularity | New value for property finestGranularity |
{sap.gantt.config.TimeAxis} | Reference to this in order to allow method chaining |
granularity
. Initial granularity of the time axis
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 4day
.
{string} | sGranularity | New value for property granularity |
{sap.gantt.config.TimeAxis} | Reference to this in order to allow method chaining |
initHorizon
. Time horizon which is displayed after the Gantt chart is initialized
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_INIT_HORIZON
.
{sap.gantt.config.TimeHorizon} | sInitHorizon | New value for property initHorizon |
{sap.gantt.config.TimeAxis} | Reference to this in order to allow method chaining |
planHorizon
. Whole time horizon of the Gantt chart
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_PLAN_HORIZON
.
{sap.gantt.config.TimeHorizon} | sPlanHorizon | New value for property planHorizon |
{sap.gantt.config.TimeAxis} | Reference to this in order to allow method chaining |
rate
. Zoom rate of the Gantt chart
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 1
.
{float} | fRate | New value for property rate |
{sap.gantt.config.TimeAxis} | Reference to this in order to allow method chaining |
zoomStrategy
. Zoom strategy of the Gantt chart See sap.gantt.config.DEFAULT_TIME_ZOOM_STRATEGY as example
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_TIME_ZOOM_STRATEGY
.
{object} | oZoomStrategy | New value for property zoomStrategy |
{sap.gantt.config.TimeAxis} | Reference to this in order to allow method chaining |