Class sap.ui.core.TooltipBaseModule: sap/ui/core/TooltipBase
Abstract class that can be extended in order to implement any extended tooltip. For example, RichTooltip Control is based on it. It provides the opening/closing behavior and the main "text" property.
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the closed
event of this sap.ui.core.TooltipBase
.fnFunction
from the closed
event of this sap.ui.core.TooltipBase
. 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
- text : string (default: )
- openDuration : int (default: 200)
- closeDuration : int (default: 200)
- myPosition : sap.ui.core.Dock (default: begin top)
- atPosition : sap.ui.core.Dock (default: begin bottom)
- offset : string (default: 10 3)
- collision : sap.ui.core.Collision (default: flip)
- openDelay : int (default: 500)
- closeDelay : int (default: 100)
- Events
- closed : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
In addition, all settings applicable to the base type sap.ui.core.Control 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 |
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters |
- Since:
- 1.11.0
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.
{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 |
fnFunction
to the closed
event of this sap.ui.core.TooltipBase
. 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.ui.core.TooltipBase
itself.
This event is fired when the Tooltip has been closed
{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.ui.core.TooltipBase itself |
- Since:
- 1.11.0
{sap.ui.core.TooltipBase} | Reference to this in order to allow method chaining |
fnFunction
from the closed
event of this sap.ui.core.TooltipBase
. The passed function and listener object must match the ones used for event registration.
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.11.0
{sap.ui.core.TooltipBase} | Reference to this in order to allow method chaining |
closed
to attached listeners. {Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.11.0
{sap.ui.core.TooltipBase} | Reference to this in order to allow method chaining |
atPosition
. Optional. At position defines which position on the target control to align the positioned tooltip.
Default value is begin bottom
.
{sap.ui.core.Dock} | Value of property atPosition |
closeDelay
. Closing delay of the tooltip in milliseconds
Default value is 100
.
{int} | Value of property closeDelay |
closeDuration
. Optional. Close Duration in milliseconds.
Default value is 200
.
{int} | Value of property closeDuration |
collision
. Optional. Collision - when the positioned element overflows the window in some direction, move it to an alternative position.
Default value is flip
.
{sap.ui.core.Collision} | Value of property collision |
myPosition
. Optional. My position defines which position on the extended tooltip being positioned to align with the target control.
Default value is begin top
.
{sap.ui.core.Dock} | Value of property myPosition |
offset
. Optional. Offset adds these left-top values to the calculated position. Example: "10 3".
Default value is 10 3
.
{string} | Value of property offset |
openDelay
. Opening delay of the tooltip in milliseconds
Default value is 500
.
{int} | Value of property openDelay |
openDuration
. Optional. Open Duration in milliseconds.
Default value is 200
.
{int} | Value of property openDuration |
text
. The text that is shown in the tooltip that extends the TooltipBase class, for example in RichTooltip.
Default value is .
{string} | Value of property text |
atPosition
. Optional. At position defines which position on the target control to align the positioned tooltip.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is begin bottom
.
{sap.ui.core.Dock} | sAtPosition | New value for property atPosition |
{sap.ui.core.TooltipBase} | Reference to this in order to allow method chaining |
closeDelay
. Closing delay of the tooltip in milliseconds
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 100
.
{int} | iCloseDelay | New value for property closeDelay |
{sap.ui.core.TooltipBase} | Reference to this in order to allow method chaining |
closeDuration
. Optional. Close Duration in milliseconds.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 200
.
{int} | iCloseDuration | New value for property closeDuration |
{sap.ui.core.TooltipBase} | Reference to this in order to allow method chaining |
collision
. Optional. Collision - when the positioned element overflows the window in some direction, move it to an alternative position.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is flip
.
{sap.ui.core.Collision} | sCollision | New value for property collision |
{sap.ui.core.TooltipBase} | Reference to this in order to allow method chaining |
myPosition
. Optional. My position defines which position on the extended tooltip being positioned to align with the target control.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is begin top
.
{sap.ui.core.Dock} | sMyPosition | New value for property myPosition |
{sap.ui.core.TooltipBase} | Reference to this in order to allow method chaining |
offset
. Optional. Offset adds these left-top values to the calculated position. Example: "10 3".
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 10 3
.
{string} | sOffset | New value for property offset |
{sap.ui.core.TooltipBase} | Reference to this in order to allow method chaining |
openDelay
. Opening delay of the tooltip in milliseconds
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 500
.
{int} | iOpenDelay | New value for property openDelay |
{sap.ui.core.TooltipBase} | Reference to this in order to allow method chaining |
openDuration
. Optional. Open Duration in milliseconds.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 200
.
{int} | iOpenDuration | New value for property openDuration |
{sap.ui.core.TooltipBase} | Reference to this in order to allow method chaining |
text
. The text that is shown in the tooltip that extends the TooltipBase class, for example in RichTooltip.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is .
{string} | sText | New value for property text |
{sap.ui.core.TooltipBase} | Reference to this in order to allow method chaining |