Skip to content

IHoverOptions

Type interface

Represents collection of options related to hovering elements

Sources

IHoverOptions is an interface: it describes a shape of data and is not imported on its own.

Properties

touchOutBehavior

Type "removed" | "delay" | "leave"Default "leave"

What happens when element is no longer touched.

"remove" - "out" event is triggered immediately, meaning all related hover states and tooltips will be removed.

"delay" - "out" event is delayed by touchOutDelay milliseconds.

"leave" (default) - "out" event will not be triggered until any other interaction takes place somewhere elese.

touchOutDelay

Type number

How long in milliseconds should "out" event be delayed when the element is not longer being touched. Works only if touchOutBehavior = "delay".