{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "file-manager-tooltip-customization",
  "framework": "react",
  "type": "registry:component",
  "component": "FileManager",
  "variant": "tooltip-customization",
  "dependencies": [
    "@syncfusion/ej2-react-filemanager",
    "@syncfusion/ej2-react-popups"
  ],
  "description": "File manager that customizes item tooltips to show the file name and modified date on hover.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": true,
    "platformIndex": "https://ai.syncfusion.com/react/llms.txt",
    "skillPack": "syncfusion/react-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/react/js/file-manager-tooltip-customization.md"
  },
  "files": [
    {
      "target": "src/components/file-manager-tooltip-customization/FileManager.jsx",
      "content": "import { DetailsView, FileManagerComponent, NavigationPane, Toolbar, Inject } from '@syncfusion/ej2-react-filemanager';\nimport { getValue, select } from '@syncfusion/ej2-base';\nimport { TooltipComponent } from '@syncfusion/ej2-react-popups';\n/**\n * File Manager tooltip customization sample\n */\nconst TooltipCustomization = () => {\n    let fileObj;\n    let tooltipObj;\n    let hostUrl = \"https://physical-service.syncfusion.com/\";\n    let height = \"375px\";\n    let ajaxSettings = {\n        downloadUrl: hostUrl + 'api/FileManager/Download',\n        getImageUrl: hostUrl + \"api/FileManager/GetImage\",\n        uploadUrl: hostUrl + 'api/FileManager/Upload',\n        url: hostUrl + \"api/FileManager/FileOperations\"\n    };\n    function onTooltipBeforeRender(args) {\n        const buttonId = select('button', args.target).id;\n        let description = '';\n        switch (buttonId) {\n            case fileObj.element.id + '_tb_newfolder':\n                description = 'Create a new folder';\n                break;\n            case fileObj.element.id + '_tb_upload':\n                description = 'Upload new files';\n                break;\n            case fileObj.element.id + '_tb_cut':\n                description = 'Cut files and folders from the current location';\n                break;\n            case fileObj.element.id + '_tb_copy':\n                description = 'Copy files and folders from the current location';\n                break;\n            case fileObj.element.id + '_tb_paste':\n                description = 'Paste files and folders in the current location';\n                break;\n            case fileObj.element.id + '_tb_delete':\n                description = 'Delete selected files and folders';\n                break;\n            case fileObj.element.id + '_tb_download':\n                description = 'Download selected files and folders';\n                break;\n            case fileObj.element.id + '_tb_rename':\n                description = 'Rename selected file or folder';\n                break;\n            case fileObj.element.id + '_tb_sortby':\n                description = 'Change the file sorting order';\n                break;\n            case fileObj.element.id + '_tb_refresh':\n                description = 'Refresh the current location';\n                break;\n            case fileObj.element.id + '_tb_selection':\n                description = 'Following items are currently selected:';\n                for (let i = 0; i < fileObj.selectedItems.length; i++) {\n                    description = description + '</br>' + fileObj.selectedItems[i];\n                }\n                break;\n            case fileObj.element.id + '_tb_view':\n                description = 'Switch the layout view';\n                break;\n            case fileObj.element.id + '_tb_details':\n                description = 'Get the details of the seletced items';\n                break;\n            default:\n                description = '';\n                break;\n        }\n        tooltipObj.content = args.target.getAttribute('title') + '</br>' + description;\n    }\n    function fileLoad(args) {\n        const target = args.element;\n        if (args.module === 'DetailsView') {\n            const element = select('[title]', args.element);\n            const title = getValue('name', args.fileDetails) +\n                '\\n' + getValue('dateModified', args.fileDetails);\n            element.setAttribute('title', title);\n        }\n        else if (args.module === 'LargeIconsView') {\n            const title = getValue('name', args.fileDetails) +\n                '\\n' + getValue('dateModified', args.fileDetails);\n            target.setAttribute('title', title);\n        }\n    }\n    return (<div>\n            <div className=\"control-section\">\n                <TooltipComponent id=\"template-tootip\" ref={(s) => { tooltipObj = s; }} target=\"#file_toolbar [title]\" beforeRender={onTooltipBeforeRender}>\n                    <div className=\"filemanager-container\">\n                    {/* File Manager element */}\n                        <FileManagerComponent ref={(s) => { fileObj = s; }} id=\"file\" height={height} ajaxSettings={ajaxSettings} fileLoad={fileLoad}>\n                            <Inject services={[NavigationPane, DetailsView, Toolbar]}/>\n                        </FileManagerComponent>\n                    </div>\n                </TooltipComponent>\n            </div>\n        </div>);\n};\nexport default TooltipCustomization;\n"
    }
  ]
}