Skip to content

Create a tooltip without UI triggers #3451

@stigok

Description

@stigok

Is your feature request related to a problem? Please describe...

I am unable to have a button with v-b-tooltip directive that is exclusively triggered programmatically.

Describe the solution you'd like

A simple way to disable all UI triggers or empty the trigger list after its initialisation.

Describe alternatives you've considered

  • Disabling the tooltip by default using v-b-directive.disabled, or v-b-tooltip="objRef" with a property containing disabled, could potentially silence all events, but still make me able to hide or show the tooltip with the show property.
  • Passing an empty string currently falls back to the defaults (click blur), so passing an empty array through options could signify the explicit wish to keep triggers empty.
  • A trigger called none which prevents falling back to defaults.

Additional context

My use-case is an "Add item to cart"-button that should show "Item added to cart"-tooltip when the click event has propagated to the backend server, then, afterwards, hidden again automatically using delay.hide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions