activator

DOM
stable

Wire an activator element (identified by IActivatorProps.activator) to a component's event bindings. Watches for prop changes to rebind or unbind events reactively, and cleans up on scope disposal.

API

Signature

Signature TypeScript complète, extraite du fichier util.

typescript

API

Paramètres

Paramètres d'entrée acceptés par cet util.

props
requis
IActivatorProps
Component props containing the activator selector and optional activatorProps to bind.
vm
requis
ComponentInternalInstance
The calling component's internal instance, used to resolve "parent" selectors.
{activatorEl, activatorEvents}
requis
Pick<ReturnType<typeof useActivator>, 'activatorEl' | 'activatorEvents'>

API

Valeur de retour

La valeur retournée par cet util.

Sets up watchers and scope disposal. Returns nothing — side effects only.