Sign up (with export icon)

ViewDocumentInputEventData

Api-interface iconinterface

Properties

  • Chevron-right icon

    data: string | null
    readonly

    A unified text data passed along with the input event. Depending on:

    text data is sometimes passed in the data and sometimes in the dataTransfer property.

    • If InputEvent#data was set, this property reflects its value.
    • If InputEvent#data is unavailable, this property contains the 'text/plain' data from dataTransfer.
    • If the event (input type) provides no data whatsoever, this property is null.
  • Chevron-right icon

    The data transfer instance of the input event. Corresponds to native InputEvent#dataTransfer.

    The value is null when no dataTransfer was passed along with the input event.

  • Chevron-right icon

    document: ViewDocument
    readonlyinherited

    The instance of the document.

  • Chevron-right icon

    domEvent: InputEvent
    readonlyinherited

  • Chevron-right icon

    domTarget: HTMLElement
    readonlyinherited

  • Chevron-right icon

    inputType: string
    readonly

    The type of the input event (e.g. "insertText" or "deleteWordBackward"). Corresponds to native InputEvent#inputType.

  • Chevron-right icon

    isComposing: boolean
    readonly

    A flag indicating that the beforeinput event was fired during composition.

    Corresponds to the event-compositionstart, event-compositionupdate, and event-compositionend trio.

  • Chevron-right icon

    target: ViewElement
    readonlyinherited

    The tree view element representing the target.

  • Chevron-right icon

    targetRanges: Array<ViewRange>
    readonly

    Editing view ranges corresponding to DOM ranges provided by the web browser (as returned by InputEvent#getTargetRanges()).

  • Chevron-right icon

    view: EditingView
    readonlyinherited

    Instance of the view controller.

Methods