Class sap.suite.ui.commons.ColumnDataModule: sap/suite/ui/commons/ColumnData
Column data holder.
Deprecated API:Since version 1.34. Deprecated. sap.suite.ui.microchart.ColumnMicroChartData should be used.
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the 'press' event of this sap.suite.ui.commons.ColumnData
.fnFunction
from the 'press' event of this sap.suite.ui.commons.ColumnData
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers.
If the name of a setting is ambiguous (e.g. a property has the same name as an event), then the framework assumes property, aggregation, association, event in that order. To override this automatic resolution, one of the prefixes "aggregation:", "association:" or "event:" can be added to the name of the setting (such a prefixed name must be enclosed in single or double quotes).
The supported settings are:
- Properties
- Aggregations
- Associations
- Events
- press : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
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 |
- Deprecated:
- Since version 1.34. Deprecated. sap.suite.ui.microchart.ColumnMicroChartData should be used.
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters |
- Since:
- 1.30
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of informations as described in Element.extend.
{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. |
{function} | the created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
fnFunction
to the 'press' event of this sap.suite.ui.commons.ColumnData
.. When called, the context of the event handler (its
this
) will be bound to oListener if specified otherwise to this sap.suite.ui.commons.ColumnData
.
itself. The event is fired when the user chooses the column data.
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 call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.suite.ui.commons.ColumnData .itself. |
Since:
1.30
Returns:
{sap.suite.ui.commons.ColumnData} | this to allow method chaining |
detachPress(fnFunction, oListener): sap.suite.ui.commons.ColumnData Detach event handler fnFunction
from the 'press' event of this sap.suite.ui.commons.ColumnData
.
The passed function and listener object must match the ones used for event registration.
Parameters:{function} fnFunction The function to call, when the event occurs. {object} oListener Context object on which the given function had to be called.
- Since:
- 1.30
Returns:{sap.suite.ui.commons.ColumnData} this
to allow method chaining
firePress(mArguments?): sap.suite.ui.commons.ColumnData Fire event press to attached listeners. Parameters:{Map} mArguments? the arguments to pass along with the event.
- Since:
- 1.30
Returns:{sap.suite.ui.commons.ColumnData} this
to allow method chaining
getColor(): sap.suite.ui.commons.InfoTileValueColor Getter for property color
. The semantic color of the column. Default value is Neutral
Returns:{sap.suite.ui.commons.InfoTileValueColor} the value of property color
getLabel(): string Getter for property label
. The label. Default value is empty/undefined
Returns:{string} the value of property label
getValue(): float Getter for property value
. The actual value. Default value is empty/undefined
Returns:{float} the value of property value
setColor(oColor): sap.suite.ui.commons.ColumnData Setter for property color
. Default value is Neutral
Parameters:{sap.suite.ui.commons.InfoTileValueColor} oColor new value for property color
Returns:{sap.suite.ui.commons.ColumnData} this
to allow method chaining
setLabel(sLabel): sap.suite.ui.commons.ColumnData Setter for property label
. Default value is empty/undefined
Parameters:{string} sLabel new value for property label
Returns:{sap.suite.ui.commons.ColumnData} this
to allow method chaining
setValue(fValue): sap.suite.ui.commons.ColumnData Setter for property value
. Default value is empty/undefined
Parameters:{float} fValue new value for property value
Returns:{sap.suite.ui.commons.ColumnData} this
to allow method chaining