Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

Optional delay

delay?: number

Sets the delay between a trigger state occurring and the tooltip appearing on-screen.

Warning: this option may be removed when switching to another tooltip library. Be prepared for this to break in Flarum stable.

Default: 0.

deprecated

Optional html

html?: boolean

Whether HTML content is allowed in the tooltip.

Warning: this is a possible XSS attack vector. This option shouldn't be used wherever possible, and may not work when we migrate to another tooltip library. Be prepared for this to break in Flarum stable.

Default: false.

deprecated

Optional ignoreTitleWarning

ignoreTitleWarning?: boolean

Used to disable the warning for passing text to the title attribute.

Tooltip text should be passed to the text attribute.

Optional position

position?: "top" | "bottom" | "left" | "right"

Tooltip position around element.

Default: 'top'.

Optional showOnFocus

showOnFocus?: boolean

Whether to show on focus.

Default: true.

text

text: string | string[]

Tooltip textual content.

String arrays, like those provided by the translator, will be flattened into strings.

Optional tooltipVisible

tooltipVisible?: boolean

Manually show tooltip. false will show based on cursor events.

Default: false.

Generated using TypeDoc version 0.22.10