specifies templates for the list and grid modes and the progressBar configuration
function listTemplate(item) { return <div>" + item.name + "</div>; }
function progressBarTemplate(percent, extra) { return getBasis(extra.current) + "/" + getBasis(extra.total); }
const vault = new dhx.Vault("vault_container", {
uploader: {
target: "https://docs.dhtmlx.com/vault/backend/upload"
},
downloadURL: "https://docs.dhtmlx.com",
templates: { list: listTemplate, progressBar: progressBarTemplate, } });
vault.data.load("https://snippet.dhtmlx.com/codebase/data/vault/01/dataset.json");
The templates property is an object that may include the following properties:
added in v5.0
Back to top