Class sap.viz.ui5.types.controller.InteractionModule: sap/viz/ui5/types/controller/Interaction
Module sap.viz.ui5.types.controller.Interaction
Deprecated API:Since version 1.32.0. The chart controls in the sap.viz.ui5
package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility.
SAP strongly recommends that existing consumers of those controls migrate to the new VizFrame control to benefit from new charting enhancements and timely support.
Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration.
Experimental API:Since version 1.7.2. Charting API is not finished yet and might change completely.
Since: 1.7.2.
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
.preserveSelectionWhenDragging
. 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
- supportedEventNames : string[] (default: ???)
- enableMouseMove : boolean (default: true)
- enableMouseOver : boolean (default: true)
- enableMouseOut : boolean (default: true)
- supportLassoEvent : boolean (default: true)
- holdSelection : boolean (default: false)
- preserveSelectionWhenDragging : boolean (default: false)
- decorations : any
- triggers : any
- handlers : any
- Aggregations
- selectability : sap.viz.ui5.types.controller.Interaction_selectability
- pan : sap.viz.ui5.types.controller.Interaction_pan
In addition, all settings applicable to the base type sap.viz.ui5.core.BaseStructuredType 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.32.0. The chart controls in the
sap.viz.ui5
package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility.SAP strongly recommends that existing consumers of those controls migrate to the new VizFrame control to benefit from new charting enhancements and timely support.
Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration.
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.viz.ui5.core.BaseStructuredType.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 |
selectability
. {sap.viz.ui5.types.controller.Interaction} | Reference to this in order to allow method chaining |
decorations
. Set decorations relating to interaction. Each item that is an object of {name: 'decoration name', fn: 'decoration callback function'} is a decoration. Currently two decorations are supported: showDetail and hideDetail. These two decorations can be used to create a user-defined tooltip.
If these 2 decorations are used, the default tooltip is not used, and the user should implement a custom tooltip. The showDetail decoration is called when the tooltip is shown, and the hideDetail decoration is called when the tooltip is hidden.
The arguments of showDetail are one object of {mode: 'tooltip mode', data: 'data of hovering selected data point', position: 'mouse position', container: 'chart container dom element', selectedNumber: 'number of selected data points'}. 'tooltip mode' is either 'infoMode' or 'actionMode'. Hovering over an unselected data point displays the infoMode tooltip, while hovering over a selected data point displays the actionMode tooltip. 'data' is an array of dimensions and measures, where each item is an object of {name: 'dimension name or measure name', value: 'dimension member or measure value', type: 'literal string of dimension or measure'}. For instance, {name: 'Country', value: 'China', type: 'dimension'}, or {name: 'Profit', value: 159, type: 'measure'}.
The arguments of hideDetail are a string representing tooltip mode, i.e. what kind of tooltip should be hidden.
{any} | Value of property decorations |
selectability
. Settings for selectability
{sap.viz.ui5.types.controller.Interaction_selectability} |
decorations
. Set decorations relating to interaction. Each item that is an object of {name: 'decoration name', fn: 'decoration callback function'} is a decoration. Currently two decorations are supported: showDetail and hideDetail. These two decorations can be used to create a user-defined tooltip.
If these 2 decorations are used, the default tooltip is not used, and the user should implement a custom tooltip. The showDetail decoration is called when the tooltip is shown, and the hideDetail decoration is called when the tooltip is hidden.
The arguments of showDetail are one object of {mode: 'tooltip mode', data: 'data of hovering selected data point', position: 'mouse position', container: 'chart container dom element', selectedNumber: 'number of selected data points'}. 'tooltip mode' is either 'infoMode' or 'actionMode'. Hovering over an unselected data point displays the infoMode tooltip, while hovering over a selected data point displays the actionMode tooltip. 'data' is an array of dimensions and measures, where each item is an object of {name: 'dimension name or measure name', value: 'dimension member or measure value', type: 'literal string of dimension or measure'}. For instance, {name: 'Country', value: 'China', type: 'dimension'}, or {name: 'Profit', value: 159, type: 'measure'}.
The arguments of hideDetail are a string representing tooltip mode, i.e. what kind of tooltip should be hidden.
When called with a value of null
or undefined
, the default value of the property will be restored.
{any} | oDecorations | New value for property decorations |
{sap.viz.ui5.types.controller.Interaction} | Reference to this in order to allow method chaining |
selectability
. {sap.viz.ui5.types.controller.Interaction_selectability} | oSelectability | The selectability to set |
{sap.viz.ui5.types.controller.Interaction} | Reference to this in order to allow method chaining |
pan
. - Deprecated:
- Since version 1.19. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.controller.Interaction} | Reference to this in order to allow method chaining |
enableMouseMove
. Set whether mouse move is enabled
Default value is true
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{boolean} | Value of property enableMouseMove |
enableMouseOut
. Set whether mouse out is enabled
Default value is true
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{boolean} | Value of property enableMouseOut |
enableMouseOver
. Set whether mouse over is enabled
Default value is true
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{boolean} | Value of property enableMouseOver |
handlers
. Set handlers for behavior decration.
- Deprecated:
- Since version 1.20. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{any} | Value of property handlers |
holdSelection
. Set whether hold selection is enabled
Default value is false
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{boolean} | Value of property holdSelection |
pan
. add documentation for aggregation pan
- Deprecated:
- Since version 1.19. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.controller.Interaction_pan} |
preserveSelectionWhenDragging
. Set whether preserve selection when dragging is enabled
Default value is false
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{boolean} | Value of property preserveSelectionWhenDragging |
supportedEventNames
. Set supported event names
Default value is ???
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{string[]} | Value of property supportedEventNames |
supportLassoEvent
. Set whether support lasso event is enabled
Default value is true
.
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{boolean} | Value of property supportLassoEvent |
triggers
. Set triggers for behavior decration.
- Deprecated:
- Since version 1.20. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{any} | Value of property triggers |
enableMouseMove
. Set whether mouse move is enabled
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bEnableMouseMove | New value for property enableMouseMove |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.controller.Interaction} | Reference to this in order to allow method chaining |
enableMouseOut
. Set whether mouse out is enabled
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bEnableMouseOut | New value for property enableMouseOut |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.controller.Interaction} | Reference to this in order to allow method chaining |
enableMouseOver
. Set whether mouse over is enabled
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bEnableMouseOver | New value for property enableMouseOver |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.controller.Interaction} | Reference to this in order to allow method chaining |
handlers
. Set handlers for behavior decration.
When called with a value of null
or undefined
, the default value of the property will be restored.
{any} | oHandlers | New value for property handlers |
- Deprecated:
- Since version 1.20. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.controller.Interaction} | Reference to this in order to allow method chaining |
holdSelection
. Set whether hold selection is enabled
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bHoldSelection | New value for property holdSelection |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.controller.Interaction} | Reference to this in order to allow method chaining |
pan
. {sap.viz.ui5.types.controller.Interaction_pan} | oPan | The pan to set |
- Deprecated:
- Since version 1.19. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.controller.Interaction} | Reference to this in order to allow method chaining |
preserveSelectionWhenDragging
. Set whether preserve selection when dragging is enabled
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bPreserveSelectionWhenDragging | New value for property preserveSelectionWhenDragging |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.controller.Interaction} | Reference to this in order to allow method chaining |
supportedEventNames
. Set supported event names
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is ???
.
{string[]} | sSupportedEventNames | New value for property supportedEventNames |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.controller.Interaction} | Reference to this in order to allow method chaining |
supportLassoEvent
. Set whether support lasso event is enabled
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bSupportLassoEvent | New value for property supportLassoEvent |
- Deprecated:
- Since version 1.12. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.controller.Interaction} | Reference to this in order to allow method chaining |
triggers
. Set triggers for behavior decration.
When called with a value of null
or undefined
, the default value of the property will be restored.
{any} | oTriggers | New value for property triggers |
- Deprecated:
- Since version 1.20. This Property has been deprecated. This interface will be removed from the SAPUI5 delivery in one of the next releases.
{sap.viz.ui5.types.controller.Interaction} | Reference to this in order to allow method chaining |