Skip to content

pantoken-root / formats/interactions/src / OnCommand

Alias di tipo: OnCommand ​

OnCommand = (target, handler) => void

Funzione di wiring comando-evento: associa un target a un gestore, con fallback al click quando necessario.

Parametri ​

target ​

HTMLElement

handler ​

CommandHandler

Restituisce ​

void