onSubmit() {
var value = this.textbox.value;
var treedata = this.filemangerInstance.navigationpaneModule.treeObj.treeData
for (var i = 0; i < treedata.length; i++) {
// Checking the folder already exist or not.
if (treedata[i].name == value) {
this.count++
}
}
if (this.count == 0) {
// Replace the path to the root path
this.filemangerInstance.path = "/";
this.filemangerInstance.dataBind();
// Create a new folder if folder doesn't exist
this.filemangerInstance.createFolder(value);
setTimeout(() => {
// Navigate the path to the newly created folder
this.filemangerInstance.path = "/" + value;
this.filemangerInstance.dataBind();
}, 500)
}
this.count = 0;
} |
<ejs-filemanager id='overview' #filemanager [ajaxSettings]='ajaxSettings' [view]='view' cssClass="myfilemanger">
</ejs-filemanager> |
.e-filemanager.myfilemanger .e-address {
display: none;
} |