sap.makit.Layer.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.makit.Layer with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of informations as described in Element.extend.
Parameters:
{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. |
Returns:
{function} | the created class / constructor function |
Returns a metadata object for class sap.makit.Layer.
Returns:
Adds some column oColumn
to the aggregation named columns
.
Parameters:
Returns:
Binder for aggregation columns
.
Parameters:
{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) |
Returns:
Binder for aggregation rows
.
Parameters:
{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) |
Returns:
Destroys all the columns in the aggregation named columns
.
Returns:
Destroys the series in the aggregation named series
.
Returns:
Destroys all the values in the aggregation named values
.
Returns:
Getter for aggregation columns
.
The data column map of the chart.
Returns:
getDrawOnSecondaryAxis(): boolean
Getter for property
drawOnSecondaryAxis
. Specifiy whether this layer should be drawn on the secondary axis.
Default value is false
Returns:
{boolean} | the value of property drawOnSecondaryAxis |
getLineThickness(): float
Getter for property
lineThickness
. Specify the line thickness of the line graph. Only applies to Line chart type.
Default value is 1
Returns:
{float} | the value of property lineThickness |
getPrimaryColorPalette(): any
Getter for property
primaryColorPalette
. Allow a layer’s primary axis color palette to be modified without affecting other charts in the same screen. If not set, the chart will use the default color palette defined in the theme. This property will take precedence over other CombinationChart's color palette properties. Accept an array of color in string format or hex format. e.g. 0xff0000 "red" "rgb(255,0,0)"
Default value is empty/undefined
Returns:
{any} | the value of property primaryColorPalette |
Getter for aggregation rows
.
The data rows of the chart. User should bind these to their data source
Returns:
getSelectedSeries(): string
Get the value of the currently highlighted series
Returns:
Getter for aggregation series
.
Data region property of the chart's Series
Returns:
Getter for property
type
. Chart type
Default value is Column
Returns:
Getter for aggregation values
.
Data region property of the chart's Values
Returns:
indexOfColumn(oColumn): int
Checks for the provided sap.makit.Column
in the aggregation named columns
and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | the index of the provided control in the aggregation if found, or -1 otherwise |
indexOfRow(oRow): int
Checks for the provided sap.makit.Row
in the aggregation named rows
and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | the index of the provided control in the aggregation if found, or -1 otherwise |
indexOfValue(oValue): int
Checks for the provided sap.makit.Value
in the aggregation named values
and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | the index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a column into the aggregation named columns
.
Parameters:
{sap.makit.Column} | oColumn | the column to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the column should be inserted at; for a negative value of iIndex , the column is inserted at position 0; for a value greater than the current size of the aggregation, the column is inserted at the last position |
Returns:
Inserts a value into the aggregation named values
.
Parameters:
{sap.makit.Value} | oValue | the value to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the value should be inserted at; for a negative value of iIndex , the value is inserted at position 0; for a value greater than the current size of the aggregation, the value is inserted at the last position |
Returns:
Removes all the controls in the aggregation named columns
.
Additionally unregisters them from the hosting UIArea.
Returns:
Removes all the controls in the aggregation named values
.
Additionally unregisters them from the hosting UIArea.
Returns:
Removes an column from the aggregation named columns
.
Parameters:
Returns:
Removes an value from the aggregation named values
.
Parameters:
Returns:
Setter for property
drawOnSecondaryAxis
.
Default value is false
Parameters:
{boolean} | bDrawOnSecondaryAxis | new value for property drawOnSecondaryAxis |
Returns:
Setter for property
lineThickness
.
Default value is 1
Parameters:
{float} | fLineThickness | new value for property lineThickness |
Returns:
Setter for property
primaryColorPalette
.
Default value is empty/undefined
Parameters:
{any} | oPrimaryColorPalette | new value for property primaryColorPalette |
Returns:
Setter for property
type
.
Default value is Column
Parameters:
Returns:
Unbinder for aggregation columns
.
Returns:
Unbinder for aggregation rows
.
Returns: