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 characters.

Link copied to clipboard

The dataTransfer read-only property of the 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 Possible changes include for example inserting, deleting, and formatting text.

Link copied to clipboard

The InputEvent.isComposing read-only property returns a boolean value indicating if the event is fired after A boolean.

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 is the Window object the event happened in.

Functions

Link copied to clipboard
open override fun asInit(): InputEventInit
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