ClipboardItem

@native @JSGlobal @JSType
class ClipboardItem(items: Dictionary[ClipboardItemData], options: ClipboardItemOptions) extends Object

A clipboard item is conceptually data that the user has expressed a desire to make shareable by invoking a "cut" or "copy" command

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def getType(`type`: String): Promise[Blob]

Returns a Promise that resolves with a Blob of the requested MIME type, or an error if the MIME type is not found.

Returns a Promise that resolves with a Blob of the requested MIME type, or an error if the MIME type is not found.

def types: FrozenArray[String]

Returns an Array of MIME types available within the ClipboardItem.

Returns an Array of MIME types available within the ClipboardItem.

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object