InputEvent

open class InputEvent(val type: EventType<InputEvent>, init: InputEventInit = definedExternally) : UIEvent(source)

The InputEvent interface represents an event notifying the user of editable content changes.

MDN Reference

Constructors

Link copied to clipboard
constructor(type: EventType<InputEvent>, init: InputEventInit = 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
val data: String?

The data read-only property of the InputEvent interface returns a string with inserted characters.

Link copied to clipboard

The dataTransfer read-only property of the InputEvent interface returns a DataTransfer object containing information about richtext or plaintext data being added to or removed from editable content.

Link copied to clipboard
Link copied to clipboard
val detail: Int

The UIEvent.detail read-only property, when non-zero, provides the current (or next, depending on the event) click count.

Link copied to clipboard
Link copied to clipboard

The inputType read-only property of the InputEvent interface returns the type of change made to editable content.

Link copied to clipboard

The InputEvent.isComposing read-only property returns a boolean value indicating if the event is fired after Element/compositionstart_event and before Element/compositionend_event.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val type: EventType<InputEvent>
Link copied to clipboard
val view: Window?

The UIEvent.view read-only property returns the WindowProxy object from which the event was generated.

Functions

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

The getTargetRanges() method of the InputEvent interface returns an array of StaticRange objects that will be affected by a change to the DOM if the input event is not canceled.

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