Header menu logo Sutil

CustomDispatch<'T> Type

Custom events

Union cases

Union case Description

Bubbles bool

Full Usage: Bubbles bool

Parameters:
    Item : bool

Item : bool

Composed bool

Full Usage: Composed bool

Parameters:
    Item : bool

Item : bool

Detail 'T

Full Usage: Detail 'T

Parameters:
    Item : 'T

Item : 'T

Static members

Static member Description

CustomDispatch.dispatch (target, name, data)

Full Usage: CustomDispatch.dispatch (target, name, data)

Parameters:
target : EventTarget
name : string
data : 'T

CustomDispatch.dispatch (e, name, props)

Full Usage: CustomDispatch.dispatch (e, name, props)

Parameters:
e : Event
name : string
props : CustomDispatch<'T> list

CustomDispatch.dispatch (target, name, props)

Full Usage: CustomDispatch.dispatch (target, name, props)

Parameters:
target : EventTarget
name : string
props : CustomDispatch<'T> list

CustomDispatch.dispatch (e, name)

Full Usage: CustomDispatch.dispatch (e, name)

Parameters:
    e : Event
    name : string

e : Event
name : string

CustomDispatch.dispatch (target, name)

Full Usage: CustomDispatch.dispatch (target, name)

Parameters:
target : EventTarget
name : string

CustomDispatch.toCustomEvent props

Full Usage: CustomDispatch.toCustomEvent props

Parameters:
Returns: CustomEventInit<'T>
props : CustomDispatch<'T> list
Returns: CustomEventInit<'T>

Type something to start searching.