Skip to content

@ralphschuler.webgl shader factory.<internal>.DataTransferItem

github-actions edited this page Nov 26, 2023 · 1 revision

Interface: DataTransferItem

@ralphschuler/webgl-shader-factory.<internal>.DataTransferItem

One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object.

MDN Reference

Table of contents

Properties

Methods

Properties

kind

Readonly kind: string

Returns the drag data item kind, one of: "string", "file".

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6553


type

Readonly type: string

Returns the drag data item type string.

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6559

Methods

getAsFile

getAsFile(): null | File

Returns a File object, if the drag data item kind is File.

MDN Reference

Returns

null | File

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6565


getAsString

getAsString(callback): void

Invokes the callback with the string data as the argument, if the drag data item kind is text.

MDN Reference

Parameters

Name Type
callback null | FunctionStringCallback

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6571


webkitGetAsEntry

webkitGetAsEntry(): null | FileSystemEntry

MDN Reference

Returns

null | FileSystemEntry

Defined in

node_modules/typescript/lib/lib.dom.d.ts:6573

Typescript Libraries

Modules

Namespaces

Clone this wiki locally