ToggleEvent

open class ToggleEvent(val type: EventType<ToggleEvent>, init: ToggleEventInit = definedExternally) : Event(source)

The ToggleEvent interface represents an event notifying the user an Element's state has changed.

MDN Reference

Constructors

Link copied to clipboard
constructor(type: EventType<ToggleEvent>, init: ToggleEventInit = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The newState read-only property of the ToggleEvent interface is a string representing the state the element is transitioning to.

Link copied to clipboard
Link copied to clipboard

The oldState read-only property of the ToggleEvent interface is a string representing the state the element is transitioning from.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val type: EventType<ToggleEvent>

Functions

Link copied to clipboard
open override fun asInit(): ToggleEventInit
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard