How to Install dhtmlxVault

You can choose between several variants of installing Vault package into your project. It is possible to make use of the npm or yarn package managers, or download the component package and include source files on a page by setting paths to them.

Installing Vault via npm or yarn

You can import dhtmlxVault into your project using the npm or yarn package managers.

Installing trial Vault via npm or yarn

If you want to use the trial version of Vault, download the trial Vault package and follow the steps mentioned in the README file. Note that the trial Vault is available 30 days only.

Installing PRO Vault via npm or yarn

You can access the DHTMLX private npm directly in the Client's Area by generating your login and password for npm. A detailed installation guide is also available there. Please note that access to the private npm is available only while your proprietary Vault license is active.

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