# file-manager-tooltip-customization

> File manager that customizes item tooltips to show the file name and modified date on hover.

**Framework:** angular  **Component:** FileManager  **Variant:** tooltip-customization

## Get this item

**If you are an agent, fetch the JSON.** Source is inlined, so one request is enough and no tooling is required:

```
GET https://ai.syncfusion.com/r/angular/file-manager-tooltip-customization.json
```

**Install Package(s)**

```bash
npm install @syncfusion/ej2-angular-filemanager
```

**Notes**

- Syncfusion release: 2026 Volume 3 (v35.1.37)
- The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md

## Source files

### src/components/file-manager-tooltip-customization/file-manager.component.html

```html
<div class="sample-container">
    <div class="filemanagerContainer">
        <ejs-filemanager id='file-manager' [ajaxSettings]='ajaxSettings' (fileLoad)="fileLoad($event)" height="375px">
        </ejs-filemanager>
    </div>
</div>

```

### src/components/file-manager-tooltip-customization/file-manager.component.ts

```typescript
import { Component, ViewEncapsulation } from '@angular/core';
import { FileManagerModule, NavigationPaneService, ToolbarService, DetailsViewService, FileLoadEventArgs } from '@syncfusion/ej2-angular-filemanager';
import { getValue, select } from '@syncfusion/ej2-base';
/**
 * File Manager tooltip customization sample
 */
@Component({
    selector: 'control-content',
    templateUrl: 'file-manager.component.html',
    styleUrls: ['../file-manager-common.style.css'],
    encapsulation: ViewEncapsulation.None,
    providers: [NavigationPaneService, ToolbarService, DetailsViewService],
    standalone: true,
    imports: [FileManagerModule]
})

export class TooltipCustomizationController {
    public ajaxSettings?: object;
    public hostUrl: string = 'https://physical-service.syncfusion.com/';
    public ngOnInit(): void {
        this.ajaxSettings = {
            url: this.hostUrl + 'api/FileManager/FileOperations',
            getImageUrl: this.hostUrl + 'api/FileManager/GetImage',
            uploadUrl: this.hostUrl + 'api/FileManager/Upload',
            downloadUrl: this.hostUrl + 'api/FileManager/Download'
        };
    }

    fileLoad(args: FileLoadEventArgs) {
        //Native tooltip customization to display additonal information in new line
        let target: Element = args.element as Element;
        if (args.module === 'DetailsView') {
            let element: Element = select('[title]', target);
            let title: string = getValue('name', args.fileDetails) +
                '\n' + getValue('dateModified', args.fileDetails);
            element.setAttribute('title', title);
        } else if (args.module === 'LargeIconsView') {
            let title: string = getValue('name', args.fileDetails) +
                '\n' + getValue('dateModified', args.fileDetails);
            target.setAttribute('title', title);
        }
    }
}

```
