Tooltip class
A tooltip component, which shows a tip message around target component when triggered.
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).
finalinherited
- 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.
finalinherited
- enabled → bool
-
Whether the tooptip mechanism is in effect.
no setter
- hasContent → bool
-
Whether the tooltip message is non-empty.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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 befinal - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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.
no setter
- title → String?
-
The message to show in tooltip.
no setter
- 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 nonexistent 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 -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited