{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "file-manager-custom-toolbar-items",
  "framework": "angular",
  "type": "registry:component",
  "component": "FileManager",
  "variant": "custom-toolbar-items",
  "dependencies": [
    "@syncfusion/ej2-angular-filemanager",
    "@syncfusion/ej2-angular-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/angular/llms.txt",
    "skillPack": "syncfusion/angular-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/angular/file-manager-custom-toolbar-items.md"
  },
  "files": [
    {
      "target": "src/components/file-manager-custom-toolbar-items/file-manager.component.html",
      "content": "<div class=\"sample-container\">\n    <ejs-filemanager id='files' #fileManager [ajaxSettings]='ajaxSettings' height=\"375px\">\n        <e-toolbaritems>\n            <e-toolbaritem name=\"NewFolder\" text=\"Create folder\" prefixIcon=\"e-plus\" tooltipText=\"Create folder\"></e-toolbaritem>\n            <e-toolbaritem name=\"Upload\"></e-toolbaritem>\n            <e-toolbaritem name=\"SortBy\"></e-toolbaritem>\n            <e-toolbaritem name=\"Refresh\"></e-toolbaritem>\n            <e-toolbaritem name=\"Cut\"></e-toolbaritem>\n            <e-toolbaritem name=\"Copy\"></e-toolbaritem>\n            <e-toolbaritem name=\"Paste\"></e-toolbaritem>\n            <e-toolbaritem name=\"Delete\"></e-toolbaritem>\n            <e-toolbaritem name=\"Download\"></e-toolbaritem>\n            <e-toolbaritem name=\"Rename\"></e-toolbaritem>\n            <e-toolbaritem name=\"Select\">\n                <ng-template #template>\n                    <ejs-checkbox #checkbox label=\"Select All\" [checked]=\"false\" (change)=\"onChange($event)\"></ejs-checkbox>\n                </ng-template>\n            </e-toolbaritem>\n            <e-toolbaritem name=\"Selection\"></e-toolbaritem>\n            <e-toolbaritem name=\"View\"></e-toolbaritem>\n            <e-toolbaritem name=\"Details\"></e-toolbaritem>\n        </e-toolbaritems>\n    </ejs-filemanager>\n</div>\n"
    },
    {
      "target": "src/components/file-manager-custom-toolbar-items/file-manager.component.ts",
      "content": "import { Component, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { FileManagerComponent, FileManagerAllModule, NavigationPaneService, ToolbarService, DetailsViewService } from '@syncfusion/ej2-angular-filemanager';\nimport { CheckBoxComponent, CheckBoxModule, ChangeEventArgs } from '@syncfusion/ej2-angular-buttons';\n/**\n * File Manager custom toolbar items sample\n */\n@Component({\n    selector: 'control-content',\n    templateUrl: 'file-manager.component.html',\n    styleUrls: ['../file-manager-common.style.css'],\n    encapsulation: ViewEncapsulation.None,\n    providers: [NavigationPaneService, ToolbarService, DetailsViewService],\n    standalone: true,\n    imports: [FileManagerAllModule, CheckBoxModule]\n})\n\nexport class CustomToolbarItemsController {\n    @ViewChild('fileManager')\n    public fileManagerInstance?: FileManagerComponent;\n    @ViewChild('checkbox')\n    public checkbox?: CheckBoxComponent;\n    public ajaxSettings?: object;\n    public hostUrl: string = 'https://physical-service.syncfusion.com/';\n    public ngOnInit(): void {\n        this.ajaxSettings = {\n            url: this.hostUrl + 'api/FileManager/FileOperations',\n            getImageUrl: this.hostUrl + 'api/FileManager/GetImage',\n            uploadUrl: this.hostUrl + 'api/FileManager/Upload',\n            downloadUrl: this.hostUrl + 'api/FileManager/Download'\n        };\n    }\n    public onChange(args: ChangeEventArgs): void {\n        if (args.checked) {\n            (this.fileManagerInstance as FileManagerComponent).selectAll();\n            (this.checkbox as CheckBoxComponent).label = 'Unselect All';\n        }\n        else {\n            (this.fileManagerInstance as FileManagerComponent).clearSelection();\n            (this.checkbox as CheckBoxComponent).label = 'Select All';\n        }\n    }\n}\n"
    }
  ]
}