EventListener
The methods taking Options have a signature which:
- Flattens the option properties into the method signature and uses
ParamObjectwhen compiling to JS to turn them into an object - Takes an object of that Options type
makeEventListener
let makeEventListener( target: #Element, ``type``: string, handler: Event -> unit, options: AddEventListenerOptions ): DisposeCallbacklet makeEventListener( target: #Element, ``type``: string, handler: Event -> unit, ?capture: bool, ?once: bool, ?passive: bool ): DisposeCallbackcreateEventListener
let createEventListener( target: #Element | #Element[] | Accessor<#Element> | Accessor<#Element[]>, ``type``: U4<string, string[], Accessor<string>, Accessor<string[]>>, handler: Event -> unit, options: AddEventListenerOptions ): unitlet createEventListener( target: #Element | #Element[] | Accessor<#Element> | Accessor<#Element[]>, ``type``: U4<string, string[], Accessor<string>, Accessor<string[]>>, handler: Event -> unit, ?capture: bool, ?once: bool, ?passive: bool ): unitcreateEventSignal
warning
Not implemented.
let createEventSignal([<ParamArray>] args: obj[]): objLast updated: 7/13/25, 12:35 PM