Our application is angular, nodejs based. We integrated syncfusion filemanager with our application and it's connected to Azure Blob. We need to show the recently updated files and folders highlighted.
[app.component.ts]
fileLoad(args) {
var today: any = new Date();
var dd = (String(today.getDate()) as any).padStart(2, '0');
var mm = (String(today.getMonth() + 1) as any).padStart(2, '0');
var yyyy = today.getFullYear();
//Get the current date
today = yyyy + '-' + mm + '-' + dd;
//Compare the current date with modified date.
if (today == args.fileDetails.dateModified.slice(0, 10)) {
if (args.element.getElementsByClassName('e-fe-text')[0] != null) {
//Add custom class to highlight the text.
args.element
.getElementsByClassName('e-fe-text')[0]
.classList.add('e-custom');
}
}
}
[app.component.css]
.e-custom {
color: red;
} |
Hi, Thanks for the solution. But we are using Azure blob storage and Azure blob provides last modified date only for files but not at folder level. Below is the screenshot attached, you can see that only files have date_modified, for Folders it would be null.
If a file (abc) which is inside a folder (xyz) is modified, can we highlight both xyz and abc?