This documentation is for Vault v2.5. Please go to docs.dhtmlx.com/vault/ to see documentation for the current version of dhtmlxVault.
| Group | Icon | Extensions | 
|---|---|---|
| icon_image | ![]()  | 
        jpg, jpeg, gif, png, bmp, tiff, pcx, svg, ico | 
| icon_psd | ![]()  | 
        psd | 
| icon_video | ![]()  | 
        avi, mpg, mpeg, rm, move, mov, mkv, flv, f4v, mp4, 3gp | 
| icon_audio | ![]()  | 
        wav, aiff, au, mp3, aac, wma, ogg, flac, ape, wv, m4a, mid, midi | 
| icon_arch | ![]()  | 
        rar, zip, tar, tgz, arj, gzip, bzip2, 7z, ace, apk, deb | 
| icon_text | ![]()  | 
        txt, nfo, djvu, xml | 
| icon_html | ![]()  | 
        htm, html | 
| icon_doc | ![]()  | 
        doc, docx, rtf, odt | 
| icon_pdf | ![]()  | 
        pdf, ps | 
| icon_xls | ![]()  | 
        xls | 
| icon_exe | ![]()  | 
        exe | 
| icon_dmg | ![]()  | 
        dmg | 
![]()  | 
        for all other formats default icon used | 
These icons are licensed under a Creative Commons Attribution 3.0 License, https://fatcow.com/
// remove existing group
dhtmlXVaultObject.prototype.icons.icon_image = [];
 
// alter existing group (remove several icons or add new ones)
dhtmlXVaultObject.prototype.icons.icon_image = ["jpg","png","bmp"];
 
// add new group
dhtmlXVaultObject.prototype.icons.icon_iso = ["iso","nrg"];
 
// change default icon
dhtmlXVaultObject.prototype.icon_def = "other_def_icon";
.dhx_vault_dhx_skyblue div.dhx_vault_files 
div.dhx_vault_file_icon.dhx_vault_icon_image div.dhx_vault_all_icons {
    background-image: url("path_to_file/icon_custom.gif");
    width: 32px;
    height: 32px;
}
    .dhx_vault_dhx_skyblue div.dhx_vault_files 
div.dhx_vault_file_icon.dhx_vault_icon_iso div.dhx_vault_all_icons {
    background-image: url("path_to_file/icon_iso.gif");
    width: 32px;
    height: 32px;
}
    .dhx_vault_dhx_skyblue div.dhx_vault_files div.dhx_vault_file_icon.dhx_vault_icon_def
div.dhx_vault_all_icons {
    background-image: url("path_to_file/other_def_icon.gif");
    width: 32px;
    height: 32px;
}
// init vault
var myVault = new dhtmlXVaultObject({...});
 
// remove several icons (i.e. default icon will used for them)
delete myVault.conf.icons.txt;
delete myVault.conf.icons.jpg;
delete myVault.conf.icons.png;
 
// change group for existing extension or add new extension
myVault.conf.icons.txt = "custom_icon";
myVault.conf.icons.iso = "group_iso";
 
// change default icon
myVault.conf.icon_def = "other_def_icon";
.dhx_vault_dhx_skyblue div.dhx_vault_files div.dhx_vault_file.dhx_vault_file_uploading div.dhx_vault_file_icon div.dhx_vault_all_icons
.dhx_vault_dhx_skyblue div.dhx_vault_files div.dhx_vault_file.dhx_vault_file_uploading 
div.dhx_vault_file_icon div.dhx_vault_all_icons {
    background-image: url("icon_loading.gif");
    width: 32px;
    height: 32px;
    left: 0px;
}
.dhx_vault_dhx_skyblue div.dhx_vault_files div.dhx_vault_file.dhx_vault_file_fail div.dhx_vault_file_icon div.dhx_vault_all_icons
.dhx_vault_dhx_skyblue div.dhx_vault_files div.dhx_vault_file.dhx_vault_file_fail
div.dhx_vault_file_icon div.dhx_vault_all_icons {
    background-image: url("icon_error.gif");
    width: 32px;
    height: 32px;
    left: 0px;
}
			Back to top