![]() ![]() The DataTransferItemList object is a list of DataTransferItem objects. The DataTransferItem object also has methods to get the drag item's data. ![]() A DataTransferItem object represents a single drag item, each with a kind property (either string or file) and a type property for the data item's MIME type. (Firefox supports some Gecko-specific extensions to the DataTransfer object, but those extensions will only work on Firefox.)Įach DataTransfer object contains an items property, which is a list of DataTransferItem objects. The DragEvent and DataTransfer interfaces should be the only ones needed to add HTML Drag and Drop capabilities to an application. DataTransfer objects also have methods to add or remove items to the drag's data. The DragEvent interface has a constructor and one dataTransfer property, which is a DataTransfer object.ĭataTransfer objects include the drag event's state, such as the type of drag being done (like copy or move), the drag's data (one or more items), and the MIME type of each drag item. The HTML Drag and Drop interfaces are DragEvent, DataTransfer, DataTransferItem and DataTransferItemList. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |