Event argument that can be used to query the text to display when the mouse hovers over the given point in world coordinate space.
Type Details
- yFiles module
- view
See Also
Constructors
Initializes a new instance of the QueryToolTipEventArgs class.
Parameters
A map of options to pass to the method.
- context - IInputModeContext
- The context of the query.
- queryLocation - Point
- The query location.
Properties
Gets the context for the current event.
Gets or sets a value indicating whether this QueryToolTipEventArgs has been handled.
Remarks
Handlers which handle this QueryToolTipEventArgs should always test first, whether this property is set to true
and, if so, exit without doing anything.
This property is automatically set to true
if the toolTip or toolTipAsync property has been assigned a value.
Property Value
true
if handled; false
otherwise.Gets the query location in world coordinates.
Property Value
Gets or sets the tooltip content to use.
Remarks
If a non-null
value is set, that value will be displayed as tooltip.
This property can be set to either a text string for simple text, or an HTMLElement
for rich HTML structures. This allows embedding dynamically rendered components from third-party libraries.
Setting this property will set the handled property to true
.
Property Value
null
if no tooltip should be displayed.See Also
Gets or sets a Promise<T> that provides the tooltip content to use.