Check documentation for the latest version of dhtmlxSuite addDraggableNode DHTMLX Docs

addDraggableNode

adds a draggable node to vault

void addDraggableNode(string|number|HTMLElement nodeId,object fileData);

Parameters

nodeIdstring|number|HTMLElementid of the node or node DOM element
fileDataobjectfile data which will be sent to the server

Example

// file data which will be sent to the server
var fileData = {
    name:   "price.xls",    // file name, mandatory
    size:   257412,         // file size, optional
    key_a:  "valueA",       // any custom key-value pairs
    key_b:  "valueB"
};
 
myVault.addDraggableNode("nodeId", fileData);

Related samples

Details

This API page is for Vault v2.5. Please go to docs.dhtmlx.com/vault/ to see API reference for the current version of dhtmlxVault.

Change log

added in version 2.3

Back to top