How to Install dhtmlxVault

Download the package

To install Vault package into your project you need to download the component package and unpack it into a folder of your project.

Then include vault.js and vault.css files into a page. Make sure that you set correct relative paths to these files:

The source files are represented in two versions: the full version and the minified one. Make sure that you set correct relative paths to these files:

index.html

// full version
<script type="text/javascript" src="codebase/vault.js"></script>  
<link rel="stylesheet" href="codebase/vault.css">
 
// minified version
<script type="text/javascript" src="codebase/vault.min.js"></script>  
<link rel="stylesheet" href="codebase/vault.min.css">

How to run samples

Since the main purpose of Vault is file uploading, it's obvious that this component needs a backend to work with files. To provide the possibility to run samples in the docs, the Vault package is equipped with a testing Node.js server which is properly configured and ready to use.

All you need to do is to run two commands from the root directory of the folder with Vault package in the console:

npm install
npm start

After that Vault samples will be launched automatically in a new tab of the browser.

Back to top