# file-manager-custom-toolbar-items

> File manager toolbar with a modified New Folder item and a custom Select All checkbox item.

**Framework:** vue  **Component:** FileManager  **Variant:** custom-toolbar-items

## 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/vue/file-manager-custom-toolbar-items.json
```

**Install Package(s)**

```bash
npm install @syncfusion/ej2-vue-filemanager @syncfusion/ej2-vue-buttons
```

**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-custom-toolbar-items/FileManager.vue

```vue
<template>
  <div class="control-section file-custom-toolbar">
    <div class="sample-container">
      <ejs-filemanager id="file-manager" ref="fileManagerInstance" :ajaxSettings="ajaxSettings">
        <e-toolbaritems>
          <e-toolbaritem name="NewFolder"></e-toolbaritem>
          <e-toolbaritem name="Upload"></e-toolbaritem>
          <e-toolbaritem name="SortBy"></e-toolbaritem>
          <e-toolbaritem name="Refresh"></e-toolbaritem>
          <e-toolbaritem name="Cut"></e-toolbaritem>
          <e-toolbaritem name="Copy"></e-toolbaritem>
          <e-toolbaritem name="Paste"></e-toolbaritem>
          <e-toolbaritem name="Delete"></e-toolbaritem>
          <e-toolbaritem name="Download"></e-toolbaritem>
          <e-toolbaritem name="Rename"></e-toolbaritem>
          <e-toolbaritem name="Select" :template="'checkboxTemplate'">
            <template v-slot:checkboxTemplate>
              <div>
                <ejs-checkbox :label="label" :checked="false" :change="onChange"></ejs-checkbox>
              </div>
            </template>
          </e-toolbaritem>
          <e-toolbaritem name="Selection"></e-toolbaritem>
          <e-toolbaritem name="View"></e-toolbaritem>
          <e-toolbaritem name="Details"></e-toolbaritem>
        </e-toolbaritems>
      </ejs-filemanager>
    </div>
  </div>
</template>

<script lang="ts">
import { FileManagerComponent, DetailsView, NavigationPane, Toolbar, ToolbarItemDirective, ToolbarItemsDirective } from '@syncfusion/ej2-vue-filemanager';
import { CheckBoxComponent } from '@syncfusion/ej2-vue-buttons';

export default {
  components: {
    'ejs-filemanager': FileManagerComponent,
    'e-toolbaritems': ToolbarItemsDirective,
    'e-toolbaritem': ToolbarItemDirective,
    'ejs-checkbox': CheckBoxComponent
  },
  data() {
    return {
      ajaxSettings: {
        url: 'https://physical-service.syncfusion.com/api/FileManager/FileOperations',
        getImageUrl: 'https://physical-service.syncfusion.com/api/FileManager/GetImage',
        uploadUrl: 'https://physical-service.syncfusion.com/api/FileManager/Upload',
        downloadUrl: 'https://physical-service.syncfusion.com/api/FileManager/Download'
      },
      label: 'Select All'
    };
  },
  provide() {
    return {
      filemanager: [DetailsView, NavigationPane, Toolbar]
    };
  },
  methods: {
    onChange(args: any) {
      const fileObj = (this.$refs.fileManagerInstance as any).ej2Instances;
      if (args.checked) {
        fileObj.selectAll();
        this.label = 'Unselect All';
      } else {
        fileObj.clearSelection();
        this.label = 'Select All';
      }
    }
  }
};
</script>

<style scoped>
.file-custom-toolbar .sample-container {
  margin: 10px 10px 10px 10px;
}
</style>

```
