click
Ce contenu n’est pas encore disponible dans votre langue.
Actions that behave like an on click event listener but with additional conditions.
See
Type Aliases
ClickDragOptions
Options for the clickIfDrag and clickIfNoDrag action.
Type declaration
onclick()?
Parameters
• e: PointerEvent
Returns
void
threshold?
See
Defined in
tmp/commons/src/lib/actions/click.ts:16
Functions
clickIfDrag()
Action that triggers a callback if the pointer is moved after a pointerdown event.
Type Parameters
• E extends HTMLElement
Parameters
• node: E
• options: ClickDragOptions
Returns
ActionReturn
<ClickDragOptions
>
Defined in
tmp/commons/src/lib/actions/click.ts:68
clickIfNoDrag()
Action that triggers a callback if the pointer is not moved after a pointerdown event.
Type Parameters
• E extends HTMLElement
Parameters
• node: E
• options: ClickDragOptions
Returns
ActionReturn
<ClickDragOptions
>