sap.suite.ui.microchart.ColumnMicroChart.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.suite.ui.microchart.ColumnMicroChart with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.core.Control.extend.
Parameters:
{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 |
Returns:
{function} | Created class / constructor function |
Returns a metadata object for class sap.suite.ui.microchart.ColumnMicroChart.
Returns:
Adds some column to the aggregation columns
.
Parameters:
Returns:
Attaches event handler
fnFunction
to the
press
event of this
sap.suite.ui.microchart.ColumnMicroChart
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.suite.ui.microchart.ColumnMicroChart
itself.
The event is fired when the user chooses the column chart.
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.suite.ui.microchart.ColumnMicroChart itself |
Returns:
Binds aggregation
columns
to model data.
See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo
.
Parameters:
{object} | oBindingInfo | The binding information |
Returns:
Destroys all the columns in the aggregation columns
.
Returns:
Destroys the leftBottomLabel in the aggregation leftBottomLabel
.
Returns:
Destroys the leftTopLabel in the aggregation leftTopLabel
.
Returns:
Destroys the rightBottomLabel in the aggregation rightBottomLabel
.
Returns:
Destroys the rightTopLabel in the aggregation rightTopLabel
.
Returns:
Detaches event handler
fnFunction
from the
press
event of this
sap.suite.ui.microchart.ColumnMicroChart
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
Fires event press
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Gets content of aggregation
columns
.
The column chart data.
Returns:
Gets current value of property
height
.
The height of the chart. If it is not set, the height of the control is defined by the size property.
Returns:
getIsResponsive(): boolean
Gets current value of property
isResponsive
.
If set to true, width and height of the control are determined by the width and height of the container in which the control is placed. Size, width and height properties are ignored in this case.
Default value is false
.
- Since:
- 1.38.0
Returns:
{boolean} | Value of property isResponsive |
Gets content of aggregation
leftBottomLabel
.
The label on the left bottom corner of the chart.
Returns:
Gets content of aggregation
leftTopLabel
.
The label on the left top corner of the chart.
Returns:
Gets content of aggregation
rightBottomLabel
.
The label on the right bottom corner of the chart.
Returns:
Gets content of aggregation
rightTopLabel
.
The label on the right top corner of the chart.
Returns:
Gets current value of property
size
.
Updates the size of the chart. If not set then the default size is applied based on the device tile.
Default value is Auto
.
Returns:
Gets current value of property
width
.
The width of the chart. If it is not set, the width of the control is defined by the size property.
Returns:
indexOfColumn(oColumn): int
Checks for the provided sap.suite.ui.microchart.ColumnMicroChartData
in the aggregation 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 |
Inserts a column into the aggregation columns
.
Parameters:
{sap.suite.ui.microchart.ColumnMicroChartData} | 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:
Removes all the controls from the aggregation
columns
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes a column from the aggregation columns
.
Parameters:
Returns:
Sets a new value for property
height
.
The height of the chart. If it is not set, the height of the control is defined by the size property.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
Returns:
Sets a new value for property
isResponsive
.
If set to true, width and height of the control are determined by the width and height of the container in which the control is placed. Size, width and height properties are ignored in this case.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bIsResponsive | New value for property isResponsive |
- Since:
- 1.38.0
Returns:
Sets the aggregated leftBottomLabel
.
Parameters:
Returns:
Sets the aggregated leftTopLabel
.
Parameters:
Returns:
Sets the aggregated rightBottomLabel
.
Parameters:
Returns:
Sets the aggregated rightTopLabel
.
Parameters:
Returns:
Sets a new value for property
size
.
Updates the size of the chart. If not set then the default size is applied based on the device tile.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Auto
.
Parameters:
Returns:
Sets a new value for property
width
.
The width of the chart. If it is not set, the width of the control is defined by the size property.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
Returns:
Unbinds aggregation columns
from model data.
Returns: