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.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- propsrequisIActivatorProps
- Component props containing the activator selector and optional activatorProps to bind.
- vmrequisComponentInternalInstance
- The calling component's internal instance, used to resolve "parent" selectors.
- {activatorEl, activatorEvents}requisPick<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.