Skip to content

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

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

Interface: DataTransfer

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

Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API.

MDN Reference

Table of contents

Properties

Methods

Properties

dropEffect

dropEffect: "link" | "none" | "copy" | "move"

Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail.

Can be set, to change the selected operation.

The possible values are "none", "copy", "link", and "move".

MDN Reference

Defined in

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


effectAllowed

effectAllowed: "link" | "all" | "none" | "copy" | "move" | "copyLink" | "copyMove" | "linkMove" | "uninitialized"

Returns the kinds of operations that are to be allowed.

Can be set (during the dragstart event), to change the allowed operations.

The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",

MDN Reference

Defined in

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


files

Readonly files: FileList

Returns a FileList of the files being dragged, if any.

MDN Reference

Defined in

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


items

Readonly items: DataTransferItemList

Returns a DataTransferItemList object, with the drag data.

MDN Reference

Defined in

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


types

Readonly types: readonly string[]

Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files".

MDN Reference

Defined in

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

Methods

clearData

clearData(format?): void

Removes the data of the specified formats. Removes all data if the argument is omitted.

MDN Reference

Parameters

Name Type
format? string

Returns

void

Defined in

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


getData

getData(format): string

Returns the specified data. If there is no such data, returns the empty string.

MDN Reference

Parameters

Name Type
format string

Returns

string

Defined in

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


setData

setData(format, data): void

Adds the specified data.

MDN Reference

Parameters

Name Type
format string
data string

Returns

void

Defined in

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


setDragImage

setDragImage(image, x, y): void

Uses the given element to update the drag feedback, replacing any previously specified feedback.

MDN Reference

Parameters

Name Type
image Element
x number
y number

Returns

void

Defined in

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

Typescript Libraries

Modules

Namespaces

Clone this wiki locally