Tooltip class

A tooltip component, which shows a tip message around target component when triggered.

Inheritance
Implementers

Constructors

Tooltip(Element element, {bool animation, String placement(Element elem), String selector, String template, String trigger, String title(Element elem), int delay, int showDelay, int hideDelay, bool html, dynamic container, NodeValidatorBuilder htmlValidator, String defaultTemplate: _defaultTemplate, String defaultTrigger: 'hover focus'})
Construct a tooltip component and wire it to element. [...]

Properties

$element ElementQuery
The dquery object of element. Equivalent to $(element).
final, inherited
animation bool
Whether to have animation. Default: true.
final
container → dynamic
The container of tooltip Element. Accepted variable forms are selector [...]
final
element Element
The element which component wires to.
final, inherited
enabled bool
Whether the tooptip mechanism is in effect.
read-only
hasContent bool
Whether the tooltip message is non-empty.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
hideDelay int
The delay time in milliseconds to show the tooptip. Default: 0.
final
html bool
Whether the tooplip content is HTML. If false, the content will be [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selector String
The selector to locate descendant Elements which would trigger the tooltip. [...]
final
showDelay int
The delay time in milliseconds to show the tooptip. Default: 0.
final
template String
The html template for tooltip.
final
tip Element
The tooltip Element.
read-only
title String
The message to show in tooltip.
read-only
trigger String
The trigger conditions, as event names separated by whitespace. [...]
final

Methods

destroy() → void
Destroy the component.
disable() → void
Disable tooptip.
enable() → void
Enable tooptip.
hide() → void
Hide the tooltip.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
show() → void
Show the tooltip.
toggle() → void
Toggle visibility of tooltip.
toggleEnabled() → void
Toggle enable/disable state.
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

wire(Element element, [Tooltip create()]) Tooltip
Retrieve the wired Tooltip object from an element. If there is no wired [...]