X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/docs/source/NativeDD.html?ds=sidebyside diff --git a/docs/source/NativeDD.html b/docs/source/NativeDD.html new file mode 100644 index 00000000..98feb45f --- /dev/null +++ b/docs/source/NativeDD.html @@ -0,0 +1,62 @@ + +
++/** + * @class Ext.air.DragType + * + * Drag drop type constants + * + * @singleton + */ +Ext.air.DragType = { + /** + * Constant for text data + */ + TEXT : 'text/plain', + /** + * Constant for html data + */ + HTML : 'text/html', + /** + * Constant for url data + */ + URL : 'text/uri-list', + /** + * Constant for bitmap data + */ + BITMAP : 'image/x-vnd.adobe.air.bitmap', + /** + * Constant for file list data + */ + FILES : 'application/x-vnd.adobe.air.file-list' +}; + + +// workaround for DD dataTransfer Clipboard not having hasFormat + +Ext.apply(Ext.EventObjectImpl.prototype, { + hasFormat : function(format){ + if (this.browserEvent.dataTransfer) { + for (var i = 0, len = this.browserEvent.dataTransfer.types.length; i < len; i++) { + if(this.browserEvent.dataTransfer.types[i] == format) { + return true; + } + } + } + return false; + }, + + getData : function(type){ + return this.browserEvent.dataTransfer.getData(type); + } +}); + + ++ + \ No newline at end of file