eslint-disable-next-line @typescript-eslint/no-explicit-any
Optionaliseslint-disable-next-line @typescript-eslint/no-explicit-any
Optionaliseslint-disable-next-line @typescript-eslint/no-explicit-any
Optionaliseslint-disable-next-line @typescript-eslint/no-explicit-any
Protectedtransform
Creates a command handler that acts on either the widget targeted by a DOM event or the current widget.