{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "file-manager-custom-toolbar-items",
  "framework": "javascript",
  "type": "registry:component",
  "component": "FileManager",
  "variant": "custom-toolbar-items",
  "dependencies": [
    "@syncfusion/ej2-filemanager",
    "@syncfusion/ej2-buttons"
  ],
  "description": "File manager toolbar with a modified New Folder item and a custom Select All checkbox item.",
  "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/javascript/llms.txt",
    "skillPack": "syncfusion/javascript-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/javascript/file-manager-custom-toolbar-items.md"
  },
  "files": [
    {
      "target": "src/components/file-manager-custom-toolbar-items/file-manager.html",
      "content": "<div class=\"control-section\">\n    <div class=\"sample-container\">\n        <!-- Initialize FileManager -->\n        <div id=\"container\"></div>\n    </div>\n</div>\n"
    },
    {
      "target": "src/components/file-manager-custom-toolbar-items/file-manager.ts",
      "content": "import { FileManager, Toolbar, NavigationPane, DetailsView } from '@syncfusion/ej2-filemanager';\nimport { CheckBox, type ChangeEventArgs } from '@syncfusion/ej2-buttons';\n\nFileManager.Inject(Toolbar, NavigationPane, DetailsView);\n\n/**\n * File Manager custom toolbar items sample\n */\nexport function initFileManagerCustomToolbarItems(): void {\n    let checkbox: CheckBox;\n    let hostUrl: string = 'https://physical-service.syncfusion.com/';\n    let fileManagerInstance: FileManager = new FileManager({\n        ajaxSettings: {\n            url: hostUrl + 'api/FileManager/FileOperations',\n            getImageUrl: hostUrl + 'api/FileManager/GetImage',\n            uploadUrl: hostUrl + 'api/FileManager/Upload',\n            downloadUrl: hostUrl + 'api/FileManager/Download'\n        },\n        toolbarItems: [\n            { name: 'NewFolder', text: 'Create folder', prefixIcon: 'e-plus', tooltipText: 'Create folder' },\n            { name: 'Upload' },\n            { name: 'SortBy' },\n            { name: 'Refresh' },\n            { name: 'Cut' },\n            { name: 'Copy' },\n            { name: 'Paste' },\n            { name: 'Delete' },\n            { name: 'Download' },\n            { name: 'Rename' },\n            { name: 'Select', template: '<input id=\"checkbox\" type=\"checkbox\"/>' },\n            { name: 'Selection' },\n            { name: 'View' },\n            { name: 'Details' }\n        ],\n        height: '375px',\n        created: onCreated\n    });\n    fileManagerInstance.appendTo('#container');\n\n    // Render the CheckBox inside the custom toolbar item template\n    function onCreated(): void {\n        checkbox = new CheckBox({ label: 'Select All', checked: false, change: onChange }, '#checkbox');\n    }\n\n    function onChange(args: ChangeEventArgs): void {\n        if (args.checked) {\n            fileManagerInstance.selectAll();\n            checkbox.label = 'Unselect All';\n        }\n        else {\n            fileManagerInstance.clearSelection();\n            checkbox.label = 'Select All';\n        }\n    }\n}\n"
    }
  ]
}