ClipboardItem : Object An item to place on the clipboard. Note FireFox does not yet support this API. See %%https://bugzilla.mozilla.org/show_bug.cgi?id=1619947|Bug 1619947%%. Spec: https://w3c.github.io/clipboard-apis/#clipboarditem ---- new ClipboardItem(valuesByType : Object, [options : { \ presentationStyle : String /* 'attachment', 'inline', or 'unspecified'. Default = 'unspecified'. */ \ }]) : ClipboardItem **valuesByType** is an object where the property names are the mime types and the property values are the data for that type. The property values must be either a %%/String|String%% or %%/Blob|Blob%%, or a %%/Promise|Promise%% that returns a %%/String|String%% or %%/Blob|Blob%%. Note Chrome does not yet support promises. See %%https://bugs.chromium.org/p/chromium/issues/detail?id=1014310|Bug 1014310%%.

Copy Text Example

Copy Image Example

---- instance.presentationStyle : String 'attachment', 'inline', or 'unspecified'. ReadOnly: true ---- instance.lastModified : Number ReadOnly: true ---- instance.delayed : Boolean ReadOnly: true ---- instance.types : Array ReadOnly: true ---- prototype.getType(type : String) : Promise ---- createDelayed(valuesByType : Object, [options : { \ presentationStyle : String /* 'attachment', 'inline', or 'unspecified'. Default = 'unspecified'. */ \ }]) : ClipboardItem