Skip to content

pantoken-root / formats/interactions/src / OnCommand

Alias de type: OnCommand ​

OnCommand = (target, handler) => void

Fonction de liaison commande-événement : lier une cible à un gestionnaire, avec repli sur click si nécessaire.

Paramètres ​

target ​

HTMLElement

handler ​

CommandHandler

Renvoie ​

void