Skip to main content
Partas

EventListener

The methods taking Options have a signature which:

  • Flattens the option properties into the method signature and uses ParamObject when 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
): DisposeCallback
let makeEventListener(
target: #Element,
``type``: string,
handler: Event -> unit,
?capture: bool,
?once: bool,
?passive: bool
): DisposeCallback

createEventListener

let createEventListener(
target: #Element | #Element[] | Accessor<#Element> | Accessor<#Element[]>,
``type``: U4<string, string[], Accessor<string>, Accessor<string[]>>,
handler: Event -> unit,
options: AddEventListenerOptions
): unit
let 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
): unit

createEventSignal

warning

Not implemented.

let createEventSignal([<ParamArray>] args: obj[]): obj

Last updated: 7/13/25, 12:35 PM

PartasBuilt using the Partas.SolidStart SolidBase template
Community
githubdiscord