Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HoverModeEventHandlers

An object of event handlers that should be provided to a component to enable and disable the visibility of a temporary element while hovering over that component.

remarks

@since 2.8.0

remarks

@since 5.0.0 The HTMLElement type will be correctly inferred when using them on multiple components.

Hierarchy

Index

Methods

  • onClick<E>(event: MouseEvent<E, MouseEvent>): void
  • An optional event handler to merge with the hover mode visibility handler. If this function calls event.stopPropagation(), the hover mode behavior will be disabled.

    Type parameters

    • E: HTMLElement

    Parameters

    • event: MouseEvent<E, MouseEvent>

    Returns void

  • onMouseEnter<E>(event: MouseEvent<E, MouseEvent>): void
  • onMouseLeave<E>(event: MouseEvent<E, MouseEvent>): void

Generated using TypeDoc