Class sap.gantt.config.ChartSchemeModule: sap/gantt/config/ChartScheme
The ChartScheme control is one of the settings of sap.gantt.GanttChart.
A Gantt chart uses this setting to decide the mode of Gantt chart and the shapes to display in the Gantt chart. A Gantt chart contains one or more Chart schemes. By switching between these schemes, the Gantt chart can display different shapes.
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
- name : string
- rowSpan : int (default: 1)
- icon : sap.ui.core.URI
- modeKey : string (default: sap.gantt.config.DEFAULT_MODE_KEY)
- haveBackground : boolean (default: false)
- backgroundClass : string
- shapeKeys : array (default: [])
In addition, all settings applicable to the base type sap.ui.core.Element can be used as well.
{string} | sId? | ID for 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 |
backgroundClass
. Decides the background color of the row in the chart scheme
{string} | Value of property backgroundClass |
haveBackground
. Decides whether the shape has a background
Default value is false
.
{boolean} | Value of property haveBackground |
icon
. URL of the icon of the Chart scheme
{sap.ui.core.URI} | Value of property icon |
key
. Unique key of the Chart scheme
{string} | Value of property key |
modeKey
. Key of sap.gantt.config.Mode
Default value is sap.gantt.config.DEFAULT_MODE_KEY
.
{string} | Value of property modeKey |
name
. Description of the Chart scheme
{string} | Value of property name |
rowSpan
. Decides the row height of sap.gantt.GanttChartBase For example, if rowSpan is 2, the row height of the Gantt chart equals twice of the row height of the tree table
Default value is 1
.
{int} | Value of property rowSpan |
shapeKeys
. Array of the key of sap.gantt.config.Shape
Default value is []
.
{array} | Value of property shapeKeys |
backgroundClass
. Decides the background color of the row in the chart scheme
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sBackgroundClass | New value for property backgroundClass |
{sap.gantt.config.ChartScheme} | Reference to this in order to allow method chaining |
haveBackground
. Decides whether the shape has a background
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bHaveBackground | New value for property haveBackground |
{sap.gantt.config.ChartScheme} | Reference to this in order to allow method chaining |
icon
. URL of the icon of the Chart scheme
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.ui.core.URI} | sIcon | New value for property icon |
{sap.gantt.config.ChartScheme} | Reference to this in order to allow method chaining |
key
. Unique key of the Chart scheme
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sKey | New value for property key |
{sap.gantt.config.ChartScheme} | Reference to this in order to allow method chaining |
modeKey
. 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} | sModeKey | New value for property modeKey |
{sap.gantt.config.ChartScheme} | Reference to this in order to allow method chaining |
name
. Description of the Chart scheme
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sName | New value for property name |
{sap.gantt.config.ChartScheme} | Reference to this in order to allow method chaining |
rowSpan
. Decides the row height of sap.gantt.GanttChartBase For example, if rowSpan is 2, the row height of the Gantt chart equals twice of the row height of the tree table
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 1
.
{int} | iRowSpan | New value for property rowSpan |
{sap.gantt.config.ChartScheme} | Reference to this in order to allow method chaining |
shapeKeys
. Array of the key of sap.gantt.config.Shape
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is []
.
{array} | sShapeKeys | New value for property shapeKeys |
{sap.gantt.config.ChartScheme} | Reference to this in order to allow method chaining |