tuil
ReferencePackages@mwillbanks/tuil-inkAPI

usePointerEvent

function exported by @mwillbanks/tuil-ink.

View rawEdit

function

Public function exported by @mwillbanks/tuil-ink.

export function usePointerEvent(
  id: string,
  type: PointerEventType,
  listener: PointerListener,
  options: { readonly capture?: boolean; readonly enabled?: boolean } = {},
): void;

Members

This declaration has no public members.

Parameters

MemberTypeRequiredDescriptionRelated types
idstringYesSupplies the id value as string.
typePointerEventTypeYesSupplies the type value as PointerEventType.PointerEventType
listenerPointerListenerYesSupplies the listener value as PointerListener.
options{ readonly capture?: boolean; readonly enabled?: boolean }NoSupplies the options value as { readonly capture?: boolean; readonly enabled?: boolean }.

Returns

void — Returns a value that satisfies void.

Related types: —

Throws

No thrown errors are documented for this declaration.

No package-local related types.

Source

View the secondary source reference

Package

@mwillbanks/tuil-ink

On this page