Angular FileManager Properties
This section describes properties that configure the FileManager UI component's contents, behavior, and appearance.
See Also
accessKey
Specifies the shortcut key that sets focus on the UI component.
The value of this property will be passed to the accesskey attribute of the HTML element that underlies the UI component.
activeStateEnabled
Specifies whether the UI component changes its visual state as a result of user interaction.
The UI component switches to the active state when users press down the primary mouse button. When this property is set to true, the CSS rules for the active state apply. You can change these rules to customize the component.
Use this property when you display the component on a platform whose guidelines include the active state change for UI components.
allowedFileExtensions
Specifies the allowed upload file extensions.
The FileManager UI component cannot upload a file and displays an error message when the file's extension is not allowed.

- <dx-file-manager id="fileManager"
- [allowedFileExtensions]="['.js', '.json', '.css']">
- <!-- ... -->
- </dx-file-manager>
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- DxFileManagerModule
- ],
- //...
- })
- export class AppModule { }
currentPath
Specifies the path that is used when the FileManager is initialized.
- <dx-file-manager id="fileManager"
- [currentPath]="Documents/Images">
- <!-- ... -->
- </dx-file-manager>
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- DxFileManagerModule
- ],
- //...
- })
- export class AppModule { }
currentPathKeys
Specifies an array of path keys to the current location.
Each path part has each own key. For example, path "directory1/directory2" has two parts: 'directory1' with the 'f1' key and directory2 with the 'f2' key. To open this location, assign the ["f1","f2"] array of strings to the currentPathKeys property value.
- <dx-file-manager id="fileManager"
- [currentPathKeys]="['EB458000-0341-6943', '92F5-4722-A7D6-98EB']">
- <!-- ... -->
- </dx-file-manager>
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- DxFileManagerModule
- ],
- //...
- })
- export class AppModule { }
customizeDetailColumns
Customizes columns in details view. Applies only if itemView.mode is "details".
The columns before customization.
The columns after customization.
- <dx-file-manager ...
- [customizeDetailColumns]="fileManager_customizeDetailColumns">
- </dx-file-manager>
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
- })
- export class AppComponent {
- // Uncomment the following lines if the function should be executed in the component's context
- // constructor() {
- // this.fileManager_customizeDetailColumns = this.fileManager_customizeDetailColumns.bind(this);
- // }
- fileManager_customizeDetailColumns(columns) {
- // ...
- // Customize the "columns" array objects here
- // ...
- return columns;
- }
- }
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- DxFileManagerModule
- ],
- providers: [],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
customizeThumbnail
Allows you to provide custom icons to be used as thumbnails.
The file or directory whose thumbnail is being customized.
An icon to use as a thumbnail.
This function should return one of the following:
- The icon's URL
- The icon's name if the icon is from the DevExtreme icon library
- The icon's CSS class if the icon is from an external icon library (see External Icon Libraries)
- The icon in the Base64 format
disabled
Specifies whether the UI component responds to user interaction.
elementAttr
Specifies the global attributes to be attached to the UI component's container element.
- <dx-file-manager ...
- [elementAttr]="{ id: 'elementId', class: 'class-name' }">
- </dx-file-manager>
- import { DxFileManagerModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxFileManagerModule
- ],
- // ...
- })
fileSystemProvider
Specifies the file system provider.
File system providers are components that provide APIs used to access and modify virtual file systems.
Refer to File System Providers for information on supported file system providers.
The following example illustrates how to configure an Object file system provider:
- <dx-file-manager id="fileManager"
- [fileSystemProvider]="fileSystem">
- </dx-file-manager>
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
- })
- export class AppComponent {
- fileSystem = [{
- name: "Documents",
- isDirectory: true,
- items: [{
- name: "Projects",
- isDirectory: true,
- items: [{
- name: "About.rtf",
- isDirectory: false,
- size: 1024
- }, {
- name: "Passwords.rtf",
- isDirectory: false,
- size: 2048
- }]
- },{
- name: "About.xml",
- isDirectory: false,
- size: 1024
- }]
- }];
- }
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- DxFileManagerModule
- ],
- //...
- })
- export class AppModule { }
focusedItemKey
Specifies a key of the initially or currently focused item.
- <dx-file-manager id="fileManager"
- [focusedItemKey]="item1_key">
- <!-- ... -->
- </dx-file-manager>
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- DxFileManagerModule
- ],
- //...
- })
- export class AppModule { }
focusStateEnabled
Specifies whether the UI component can be focused using keyboard navigation.
height
Specifies the UI component's height.
This property accepts a value of one of the following types:
Number
The height in pixels.String
A CSS-accepted measurement of height. For example,"55px","20vh","80%","inherit".
hint
Specifies text for a hint that appears when a user pauses on the UI component.
hoverStateEnabled
Specifies whether the UI component changes its state when a user pauses on it.
itemView
Configures the file and directory view.

- <dx-file-manager>
- <dxo-file-manager-item-view
- mode="thumbnails"
- showFolders="false"
- showParentFolder="false" >
- </dxo-file-manager-item-view>
- <!-- ... -->
- </dx-file-manager>
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- DxFileManagerModule
- ],
- //...
- })
- export class AppModule { }
onContentReady
A function that is executed when the UI component is rendered and each time the component is repainted.
Information about the event.
| Name | Type | Description |
|---|---|---|
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| component | The UI component's instance. |
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The UI component's instance.
onContextMenuItemClick
A function that is executed when a context menu item is clicked.
Information about the event that caused the function's execution.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is an EventObject or a jQuery.Event when you use jQuery. |
| fileSystemItem | The file system item for which you invoke the context menu. | |
| itemData | The clicked item's data. | |
| itemElement | The item's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| itemIndex | The clicked item's index. | |
| viewArea | Specifies whether the context menu is invoked in the navigation panel or in the items area. |
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
Event (jQuery or EventObject)
The event that caused the function to execute. It is an EventObject or a jQuery.Event when you use jQuery.
The file system item for which you invoke the context menu.
The clicked item's data.
The item's container. It is an HTML Element or a jQuery Element when you use jQuery.
The clicked item's index.
Specifies whether the context menu is invoked in the navigation panel or in the items area.
- <dx-file-manager
- (onContextMenuItemClick)="onItemClick($event)">
- <dxo-file-manager-context-menu>
- <dxi-file-manager-item text="Create .txt Document" [options]="{ extension: '.txt' }"></dxi-file-manager-item>
- <dxi-file-manager-item text="Create .rtf Document" [options]="{ extension: '.rtf' }"></dxi-file-manager-item>
- <dxi-file-manager-item text="Create .xls Document" [options]="{ extension: '.xls' }"></dxi-file-manager-item>
- </dxo-file-manager-context-menu>
- <!-- ... -->
- </dx-file-manager>
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
- })
- export class AppComponent {
- onItemClick(e){
- if(e.itemData.options.extension) {
- // your code
- }
- }
- }
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- imports: [
- DxFileManagerModule
- ],
- declarations: [AppComponent],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
onContextMenuShowing
A function that is executed before a context menu is displayed.
Information about the event that caused the function's execution.
| Name | Type | Description |
|---|---|---|
| cancel | Allows you to cancel showing the context menu. | |
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is an EventObject or a jQuery.Event when you use jQuery. |
| fileSystemItem | The file system item for which you invoke the context menu. | |
| targetElement | The file system item's container. It is an HTML Element or a jQuery Element when you use jQuery. This element can be a grid element or a thumbnail (for the items view area), or a tree view node (for the navigation panel). The targetElement field value is 'undefined' if you click on empty space in the items view area. | |
| viewArea | Specifies whether the context menu is invoked in the navigation panel or in the items view area. |
Allows you to cancel showing the context menu.
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
Event (jQuery or EventObject)
The event that caused the function to execute. It is an EventObject or a jQuery.Event when you use jQuery.
The file system item for which you invoke the context menu.
The file system item's container. It is an HTML Element or a jQuery Element when you use jQuery. This element can be a grid element or a thumbnail (for the items view area), or a tree view node (for the navigation panel). The targetElement field value is 'undefined' if you click on empty space in the items view area.
Specifies whether the context menu is invoked in the navigation panel or in the items view area.
- import { DxFileManagerModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- onContextMenuShowing(e) {
- const contextMenuItems = ['create', 'rename', 'delete'];
- if (e.viewArea === 'itemView'){
- // your code
- e.cancel = true;
- } else {
- // your code
- e.component.option('contextMenu.items', contextMenuItems);
- }
- }
- }
- @NgModule({
- imports: [
- // ...
- DxFileManagerModule
- ],
- // ...
- })
- <dx-file-manager ...
- (onContextMenuShowing)="onContextMenuShowing($event)">
- </dx-file-manager>
See Also
onCurrentDirectoryChanged
A function that is executed when the current directory is changed.
Information about the event that caused the function's execution.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| directory | The current directory. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. |
The UI component's instance.
The current directory.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
- <dx-file-manager
- (onCurrentDirectoryChanged)="onDirectoryChanged($event)">
- <!-- ... -->
- </dx-file-manager>
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
- })
- export class AppComponent {
- onDirectoryChanged(e){
- // your code
- }
- }
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- imports: [
- DxFileManagerModule
- ],
- declarations: [AppComponent],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
onDirectoryCreated
A function that is executed when a directory is created.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| name | The name of the created directory. | |
| parentDirectory | The parent directory. |
The UI component's instance.
The component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The name of the created directory.
The parent directory.
Use the Create Directory context menu or toolbar item to invoke the dialog. In the dialog, enter the directory name and click Create to create a new directory.

- <dx-file-manager
- (onDirectoryCreated)="onDirectoryCreated($event)">
- <!-- ... -->
- </dx-file-manager>
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
- })
- export class AppComponent {
- onDirectoryCreated(e){
- if (e.parentDirectory.name === 'Images'){
- // your code
- }
- }
- }
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- imports: [
- DxFileManagerModule
- ],
- declarations: [AppComponent],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
See Also
onDirectoryCreating
A function that is executed before a directory is created.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | | | Allows you to cancel the directory creation. |
| component | The UI component's instance. | |
| element | The component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| errorCode | The error code. The following error codes are supported:
| |
| errorText | Allows you to specify the error message. | |
| name | The name of the directory. | |
| parentDirectory | The parent directory. |
Allows you to cancel the directory creation.
The UI component's instance.
The component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The error code. The following error codes are supported:
NoAccess = 0
FileExists = 1
FileNotFound = 2
DirectoryExists = 3
DirectoryNotFound = 4
WrongFileExtension = 5
MaxFileSizeExceeded = 6
Other = 32767
Allows you to specify the error message.
The name of the directory.
The parent directory.
Use the Create Directory context menu or toolbar item to invoke the dialog. In the dialog, enter the directory name and click Create to create a new directory.
The component executes the onDirectoryCreating function when a user enters a directory name and clicks Create in the dialog.

- import { DxFileManagerModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- onDirectoryCreating(e) {
- if (e.parentDirectory.name === 'Images'){
- // your code
- e.cancel = true;
- }
- }
- }
- @NgModule({
- imports: [
- // ...
- DxFileManagerModule
- ],
- // ...
- })
- <dx-file-manager ...
- (onDirectoryCreating)="onDirectoryCreating($event)">
- </dx-file-manager>
See Also
onDisposing
A function that is executed before the UI component is disposed of.
Information about the event.
| Name | Type | Description |
|---|---|---|
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| component | The UI component's instance. |
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The UI component's instance.
onErrorOccurred
A function that is executed when an error occurs.
Information about the event that caused the function's execution.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| errorCode | The error code. The following error codes are supported:
| |
| errorText | Allows you to specify the error message. | |
| fileSystemItem | The processed file or directory. |
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The error code. The following error codes are supported:
NoAccess = 0
FileExists = 1
FileNotFound = 2
DirectoryExists = 3
DirectoryNotFound = 4
WrongFileExtension = 5
MaxFileSizeExceeded = 6
Other = 32767
Allows you to specify the error message.
The processed file or directory.
- <dx-file-manager
- (onErrorOccurred)="onError($event)">
- <!-- ... -->
- </dx-file-manager>
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
- })
- export class AppComponent {
- onOccurred(e){
- // your code
- }
- }
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- imports: [
- DxFileManagerModule
- ],
- declarations: [AppComponent],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
onFileUploaded
A function that is executed when a file is successfully uploaded.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| fileData | The uploaded file. | |
| parentDirectory | The parent directory. |
The UI component's instance.
The component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The uploaded file.
The parent directory.
Use the Upload Files context menu or toolbar item to invoke the "Open" dialog and select a file to upload.

- <dx-file-manager
- (onFileUploaded)="onFileUploaded($event)">
- <!-- ... -->
- </dx-file-manager>
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
- })
- export class AppComponent {
- onFileUploaded(e){
- if (e.parentDirectory.name === 'Images'){
- // your code
- }
- }
- }
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- imports: [
- DxFileManagerModule
- ],
- declarations: [AppComponent],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
See Also
onFileUploading
A function that is executed before the file is uploaded.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | | | Allows you to cancel the file upload. |
| component | The UI component's instance. | |
| destinationDirectory | The directory where a file is uploaded to. | |
| element | The component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| errorCode | The error code. The following error codes are supported:
| |
| errorText | Allows you to specify the error message. | |
| fileData | The file to be uploaded. |
Allows you to cancel the file upload.
The UI component's instance.
The directory where a file is uploaded to.
The component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The error code. The following error codes are supported:
NoAccess = 0
FileExists = 1
FileNotFound = 2
DirectoryExists = 3
DirectoryNotFound = 4
WrongFileExtension = 5
MaxFileSizeExceeded = 6
Other = 32767
Allows you to specify the error message.
The file to be uploaded.
Use the Upload Files context menu or toolbar item to invoke the "Open" dialog and select a file to upload.
The component executes the onFileUploading function when a user clicks Open in the dialog.

- import { DxFileManagerModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- onFileUploading(e) {
- e.cancel = new Promise((resolve, reject) => {
- fetch('your-api-endpoint', {
- method: 'POST',
- headers: {
- // ...
- },
- })
- .then(result => {
- if (result.cancel) {
- resolve({ // Resolve instead of reject
- cancel: true,
- errorCode: "Error code",
- errorText: "Error text"
- });
- } else {
- resolve(...);
- }
- });
- });
- }
- }
- @NgModule({
- imports: [
- // ...
- DxFileManagerModule
- ],
- // ...
- })
- <dx-file-manager ...
- (onFileUploading)="onFileUploading($event)">
- </dx-file-manager>
See Also
onFocusedItemChanged
A function that is executed when the focused item is changed.
Information about the event that caused the function's execution.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| item | The currently focused file or directory. | |
| itemElement | The item's container. It is an HTML Element or a jQuery Element when you use jQuery. |
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The currently focused file or directory.
The item's container. It is an HTML Element or a jQuery Element when you use jQuery.
- <dx-file-manager
- (onFocusedItemChanged)="onFocusedItemChangedEv($event)">
- <!-- ... -->
- </dx-file-manager>
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
- })
- export class AppComponent {
- onFocusedItemChangedEv(e){
- // your code
- }
- }
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- imports: [
- DxFileManagerModule
- ],
- declarations: [AppComponent],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
onInitialized
A function used in JavaScript frameworks to save the UI component instance.
Information about the event.
| Name | Type | Description |
|---|---|---|
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| component | The UI component's instance. |
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The UI component's instance.
- <dx-file-manager
- (onInitialized)="saveInstance($event)"
- ></dx-file-manager>
- import { Component } from "@angular/core";
- import { type DxFileManagerTypes } from 'devextreme-angular/ui/file-manager';
- import dxFileManager from "devextreme/ui/file_manager";
- // ...
- export class AppComponent {
- fileManagerInstance: DxFileManagerTypes.InitializedEvent['component'] | null = null;
- saveInstance(e: DxFileManagerTypes.InitializedEvent): void {
- this.fileManagerInstance = e.component;
- }
- }
See Also
- Get a UI component Instance in Angular
onItemCopied
A function that is executed when a file or directory is copied.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| itemName | The name of the copied file or directory. | |
| itemPath | The path to the copied file or directory. | |
| parentDirectory | The parent directory. | |
| sourceItem | The copied file or directory. |
The UI component's instance.
The component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The name of the copied file or directory.
The path to the copied file or directory.
The parent directory.
The copied file or directory.
Select a file/folder and use the Copy To context menu or toolbar item to invoke the "Copy to" dialog. In the dialog, select the destination directory and click Copy.


- <dx-file-manager
- (onItemCopied)="onItemCopied($event)">
- <!-- ... -->
- </dx-file-manager>
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
- })
- export class AppComponent {
- onItemCopied(e){
- if (e.parentDirectory.name === 'Images'){
- // your code
- }
- }
- }
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- imports: [
- DxFileManagerModule
- ],
- declarations: [AppComponent],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
See Also
onItemCopying
A function that is executed before a file or directory is copied.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | | | Allows you to cancel the file or directory copy process. |
| component | The UI component's instance. | |
| destinationDirectory | The directory where the file or directory is being copied to. | |
| element | The component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| errorCode | The error code. The following error codes are supported:
| |
| errorText | Allows you to specify the error message. | |
| item | The file or directory to be copied. |
Allows you to cancel the file or directory copy process.
The UI component's instance.
The directory where the file or directory is being copied to.
The component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The error code. The following error codes are supported:
NoAccess = 0
FileExists = 1
FileNotFound = 2
DirectoryExists = 3
DirectoryNotFound = 4
WrongFileExtension = 5
MaxFileSizeExceeded = 6
Other = 32767
Allows you to specify the error message.
The file or directory to be copied.
Select a file/folder and use the Copy To context menu or toolbar item to invoke the "Copy to" dialog. In the dialog, select the destination directory and click Copy.
The component executes the onItemCopying function when a user clicks Copy in the dialog.


- import { DxFileManagerModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- onItemCopying(e) {
- if (e.destinationDirectory === 'Images'){
- // your code
- e.cancel = true;
- }
- }
- }
- @NgModule({
- imports: [
- // ...
- DxFileManagerModule
- ],
- // ...
- })
- <dx-file-manager ...
- (onItemCopying)="onItemCopying($event)">
- </dx-file-manager>
See Also
onItemDeleted
A function that is executed when a file or directory is deleted.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| item | The deleted file or directory. |
The UI component's instance.
The component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The deleted file or directory.
Select a file/folder and click the Delete context menu or toolbar item. In the confirmation dialog, click "Delete" to delete the file/folder.

- <dx-file-manager
- (onItemDeleted)="onItemDeleted($event)">
- <!-- ... -->
- </dx-file-manager>
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
- })
- export class AppComponent {
- onItemDeleted(e){
- // your code
- }
- }
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- imports: [
- DxFileManagerModule
- ],
- declarations: [AppComponent],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
See Also
onItemDeleting
A function that is executed before a file or directory is deleted.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | | | Allows you to cancel the file or directory deletion. |
| component | The UI component's instance. | |
| element | The component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| errorCode | The error code. The following error codes are supported:
| |
| errorText | Allows you to specify the error message. | |
| item | The file or directory to be deleted. |
Allows you to cancel the file or directory deletion.
The UI component's instance.
The component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The error code. The following error codes are supported:
NoAccess = 0
FileExists = 1
FileNotFound = 2
DirectoryExists = 3
DirectoryNotFound = 4
WrongFileExtension = 5
MaxFileSizeExceeded = 6
Other = 32767
Allows you to specify the error message.
The file or directory to be deleted.
Select a file/folder and click the Delete context menu or toolbar item. In the confirmation dialog, click "Delete" to delete the file/folder.
The onItemCopying function is executed when a user clicks Delete in the confirmation dialog.

- import { DxFileManagerModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- onItemDeleting(e) {
- // your code
- }
- }
- @NgModule({
- imports: [
- // ...
- DxFileManagerModule
- ],
- // ...
- })
- <dx-file-manager ...
- (onItemDeleting)="onItemDeleting($event)">
- </dx-file-manager>
See Also
onItemDownloading
A function that is executed before a file is downloaded.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | | | Allows you to cancel the file download. |
| component | The UI component's instance. | |
| element | The component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| errorCode | The error code. The following error codes are supported:
| |
| errorText | Allows you to specify the error message. | |
| item | The file to be downloaded. |
Allows you to cancel the file download.
The UI component's instance.
The component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The error code. The following error codes are supported:
NoAccess = 0
FileExists = 1
FileNotFound = 2
DirectoryExists = 3
DirectoryNotFound = 4
WrongFileExtension = 5
MaxFileSizeExceeded = 6
Other = 32767
Allows you to specify the error message.
The file to be downloaded.
Select a file and use the Download context menu or toolbar item.
The component executes the onItemDownloading function when a user clicks Download in the dialog.
- import { DxFileManagerModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- onItemDownloading(e) {
- // your code
- }
- }
- @NgModule({
- imports: [
- // ...
- DxFileManagerModule
- ],
- // ...
- })
- <dx-file-manager ...
- (onItemDownloading)="onItemDownloading($event)">
- </dx-file-manager>
See Also
onItemMoved
A function that is executed when a file or directory is moved.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| itemName | The name of the moved file or directory. | |
| itemPath | The path to the moved file or directory. | |
| parentDirectory | The parent directory. | |
| sourceItem | The moved file or directory. |
The UI component's instance.
The component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The name of the moved file or directory.
The path to the moved file or directory.
The parent directory.
The moved file or directory.
Select a file/folder and use the Move To context menu or toolbar item to invoke the "Move to" dialog. In the dialog, select the destination directory and click Move.

- <dx-file-manager
- (onItemMoved)="onItemMoved($event)">
- <!-- ... -->
- </dx-file-manager>
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
- })
- export class AppComponent {
- onItemMoved(e){
- if (e.parentDirectory.name === 'Images'){
- // your code
- }
- }
- }
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- imports: [
- DxFileManagerModule
- ],
- declarations: [AppComponent],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
See Also
onItemMoving
A function that is executed before a file or directory is moved.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | | | Allows you to cancel the file or directory move process. |
| component | The UI component's instance. | |
| destinationDirectory | The directory where a file is moved to. | |
| element | The component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| errorCode | The error code. The following error codes are supported:
| |
| errorText | Allows you to specify the error message. | |
| item | The file or directory to be moved. |
Allows you to cancel the file or directory move process.
The UI component's instance.
The directory where a file is moved to.
The component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The error code. The following error codes are supported:
NoAccess = 0
FileExists = 1
FileNotFound = 2
DirectoryExists = 3
DirectoryNotFound = 4
WrongFileExtension = 5
MaxFileSizeExceeded = 6
Other = 32767
Allows you to specify the error message.
The file or directory to be moved.
Select a file/folder and use the Move To context menu or toolbar item to invoke the "Move to" dialog. In the dialog, select the destination directory and click Move.
The component executes the onItemMoving function when a user clicks Move in the dialog.

- import { DxFileManagerModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- onItemMoving(e) {
- if (e.destinationDirectory === 'Images'){
- // your code
- e.cancel = true;
- }
- }
- }
- @NgModule({
- imports: [
- // ...
- DxFileManagerModule
- ],
- // ...
- })
- <dx-file-manager ...
- (onItemMoving)="onItemMoving($event)">
- </dx-file-manager>
See Also
onItemRenamed
A function that is executed when a file or directory is renamed.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| itemName | The current name of the renamed file or directory. | |
| sourceItem | The renamed file or directory. |
The UI component's instance.
The component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The current name of the renamed file or directory.
The renamed file or directory.
Select a file/directory and click the Rename context menu or toolbar item to invoke the dialog. In the dialog, enter a new name and click Save.

- <dx-file-manager
- (onItemRenamed)="onItemRenamed($event)">
- <!-- ... -->
- </dx-file-manager>
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
- })
- export class AppComponent {
- onItemRenamed(e){
- if (e.itemName === 'test.png'){
- // your code
- }
- }
- }
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- imports: [
- DxFileManagerModule
- ],
- declarations: [AppComponent],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
See Also
onItemRenaming
A function that is executed before a file or directory is renamed.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | | | Allows you to cancel the file or directory rename. |
| component | The UI component's instance. | |
| element | The component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| errorCode | The error code. The following error codes are supported:
| |
| errorText | Allows you to specify the error message. | |
| item | The file or directory to be renamed. | |
| newName | The new name of the file or directory. This parameter is read-only. |
Allows you to cancel the file or directory rename.
The UI component's instance.
The component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The error code. The following error codes are supported:
NoAccess = 0
FileExists = 1
FileNotFound = 2
DirectoryExists = 3
DirectoryNotFound = 4
WrongFileExtension = 5
MaxFileSizeExceeded = 6
Other = 32767
Allows you to specify the error message.
The file or directory to be renamed.
The new name of the file or directory. This parameter is read-only.
Select a file/directory and click the Rename context menu or toolbar item to invoke the dialog. In the dialog, enter a new name and click Save.
The component executes the onItemRenaming function when a user enters a new file/directory name and clicks Save in the dialog.

- import { DxFileManagerModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- onItemRenaming(e) {
- if (e.newName === 'nature.png'){
- // your code
- e.cancel = true;
- }
- }
- }
- @NgModule({
- imports: [
- // ...
- DxFileManagerModule
- ],
- // ...
- })
- <dx-file-manager ...
- (onItemRenaming)="onItemRenaming($event)">
- </dx-file-manager>
See Also
onOptionChanged
A function that is executed after a UI component property is changed.
Information about the event.
| Name | Type | Description |
|---|---|---|
| value | any | The modified property's new value. |
| previousValue | any | The UI component's previous value. |
| name | The modified property if it belongs to the first level. Otherwise, the first-level property it is nested into. | |
| fullName | The path to the modified property that includes all parent properties. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| component | The UI component's instance. |
The modified property's new value.
The UI component's previous value.
The modified property if it belongs to the first level. Otherwise, the first-level property it is nested into.
The path to the modified property that includes all parent properties.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The UI component's instance.
The following example shows how to subscribe to component property changes:
- <dx-file-manager ...
- (onOptionChanged)="handlePropertyChange($event)">
- </dx-file-manager>
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
- })
- export class AppComponent {
- // ...
- handlePropertyChange(e) {
- if(e.name === "changedProperty") {
- // handle the property change here
- }
- }
- }
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- DxFileManagerModule
- ],
- providers: [ ],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
onSelectedFileOpened
A function that is executed when the selected file is opened.
Information about the event that caused the function's execution.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| file | The opened file. |
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The opened file.
- <dx-file-manager ...
- (onSelectedFileOpened)="fileManager_onSelectedFileOpened($event)">
- </dx-file-manager>
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
- })
- export class AppComponent {
- fileManager_onSelectedFileOpened(e) {
- // Your code goes here
- }
- }
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- DxFileManagerModule
- ],
- providers: [],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
onSelectionChanged
A function that is executed when a file system item is selected or selection is canceled.
Information about the event that caused the function's execution.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| currentDeselectedItemKeys | The keys of the file system items whose selection has been cleared. | |
| currentSelectedItemKeys | The keys of the file system items that have been selected. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| selectedItemKeys | The keys of all selected file system items. | |
| selectedItems | The currently selected file system items. |
The UI component's instance.
The keys of the file system items whose selection has been cleared.
The keys of the file system items that have been selected.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The keys of all selected file system items.
The currently selected file system items.
- <dx-file-manager ...
- (onSelectionChanged)="fileManager_onSelectionChanged($event)">
- </dx-file-manager>
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
- })
- export class AppComponent {
- fileManager_onSelectionChanged(e) {
- // Your code goes here
- }
- }
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- DxFileManagerModule
- ],
- providers: [],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
onToolbarItemClick
A function that is executed when a toolbar item is clicked.
Information about the event that caused the function's execution.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is an EventObject or a jQuery.Event when you use jQuery. |
| itemData | The clicked item's data. | |
| itemElement | The item's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| itemIndex | The clicked item's index. |
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
Event (jQuery or EventObject)
The event that caused the function to execute. It is an EventObject or a jQuery.Event when you use jQuery.
The clicked item's data.
The item's container. It is an HTML Element or a jQuery Element when you use jQuery.
The clicked item's index.
- <dx-file-manager ...
- (onToolbarItemClick)="fileManager_onToolbarItemClick($event)">
- </dx-file-manager>
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
- })
- export class AppComponent {
- fileManager_onToolbarItemClick(e) {
- // Your code goes here
- }
- }
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- DxFileManagerModule
- ],
- providers: [],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
permissions
Specifies actions that a user is allowed to perform on files and directories.
- <dx-file-manager id="fileManager">
- <dxo-file-manager-permissions
- create="true"
- copy="true"
- move="true"
- delete="true"
- rename="true"
- upload="true"
- download="true">
- </dxo-file-manager-permissions>
- <!-- ... -->
- </dx-file-manager>
- import { DxFileManagerModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxFileManagerModule
- ],
- // ...
- })
rootFolderName
Specifies the root directory display name.
- <dx-file-manager
- id="fileManager"
- rootFolderName="Custom Root Folder"
- >
- <!-- ... -->
- </dx-file-manager>
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- DxFileManagerModule
- ],
- //...
- })
- export class AppModule { }
rtlEnabled
Switches the UI component to a right-to-left representation.
When this property is set to true, the UI component text flows from right to left, and the layout of elements is reversed. To switch the entire application/site to the right-to-left representation, assign true to the rtlEnabled field of the object passed to the DevExpress.config(config) method.
- DevExpress.config({
- rtlEnabled: true
- });
selectedItemKeys
Contains an array of initially or currently selected files and directories' keys.
- <dx-file-manager id="fileManager"
- [selectedItemKeys]="['item1_key', 'item2_key', 'item3_key']">
- <!-- ... -->
- </dx-file-manager>
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- DxFileManagerModule
- ],
- //...
- })
- export class AppModule { }
selectionMode
Specifies whether a user can select a single or multiple files and directories in the item view simultaneously.
- <dx-file-manager id="fileManager"
- [selectionMode]="single">
- <!-- ... -->
- </dx-file-manager>
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- DxFileManagerModule
- ],
- //...
- })
- export class AppModule { }
tabIndex
Specifies the number of the element when the Tab key is used for navigating.
The value of this property will be passed to the tabindex attribute of the HTML element that underlies the UI component.
toolbar
Configures toolbar settings.

The FileManager UI component allows you to add default and custom toolbar items.
Predefined Items
Predefined toolbar items include:
- 'showNavPane' - Shows or hides the navigation panel.
- 'create' - Creates a new directory.
- 'upload' - Uploads a file.
- 'refresh' - Refreshes the file manager content and shows the progress panel.
- 'download' - Downloads a file.
- 'move' - Moves files and directories.
- 'copy' - Copies files and directories.
- 'rename' - Renames files and directories.
- 'delete' - Deletes files and directories.
- 'switchView' - Switches between the 'Details' and 'Thumbnails' file system representation modes.
- 'clearSelection' - Clears selection from files and directories in the Item View area.
To add a predefined item to the toolbar, specify its name and optional settings ('visible', 'location', 'locateInMenu', 'text', 'icon', 'disabled') and add the item to one of the following collections:
items - Displays toolbar items when no file system item is selected.
fileSelectionItems - Displays toolbar items when one or more file system items are selected.
- <dx-file-manager>
- <dxo-file-manager-toolbar>
- <!-- Specifies a predefined item's name and optional settings -->
- <dxi-file-manager-item name="create" text="Create a directory" icon="newfolder"></dxi-file-manager-item>
- <!-- Specifies a predefined item's name only -->
- <dxi-file-manager-item name="switchView"></dxi-file-manager-item>
- <dxi-file-manager-item name="separator"></dxi-file-manager-item>
- <!-- Specifies items that are visible when users select files -->
- <dxi-file-manager-file-selection-item name="copy"></dxi-file-manager-file-selection-item>
- <dxi-file-manager-file-selection-item name="rename"></dxi-file-manager-file-selection-item>
- </dxo-file-manager-toolbar>
- </dx-file-manager>
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- DxFileManagerModule
- ],
- //...
- })
- export class AppModule { }
Custom Items
To add a custom toolbar item, specify its text and optional settings (for example, a file extension for the toolbar item that creates a new file) and add the item to one of the following collections:
items - Displays toolbar items when no file system item is selected.
fileSelectionItems - Displays toolbar items when one or more file system items are selected.
The widget property allows you to specify a UI component for a custom toolbar item (dxButton is the default UI component). Use the toolbarItemClick event to handle clicks on custom toolbar items.
- <dx-file-manager>
- <dxo-file-manager-toolbar>
- <dxi-file-manager-item widget="dxMenu" [options]="fileMenuOptions"></dxi-file-manager-item>
- </dxo-file-manager-toolbar>
- </dx-file-manager>
- import { Component } from '@angular/core';
- import { Service } from './app.service';
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css'],
- providers: [Service]
- })
- export class AppComponent {
- constructor(service: Service) {
- this.fileMenuOptions = {
- items: [
- {
- text: "Create new file",
- icon: "plus",
- items: [
- {
- text: "Text Document",
- options: {
- extension: ".txt",
- }
- },
- {
- text: "RTF Document",
- options: {
- extension: ".rtf",
- }
- },
- {
- text: "Spreadsheet",
- options: {
- extension: ".xls",
- }
- }
- ]
- }
- ],
- onItemClick: () => {
- // ...
- }
- };
- }
- }
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- imports: [
- BrowserModule,
- DxFileManagerModule
- ],
- declarations: [AppComponent],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
upload
Configures upload settings.
- <dx-file-manager id="fileManager">
- <dxo-file-manager-upload [chunkSize]="500000" [maxFileSize]="1000000" ></dxo-file-manager-upload>
- <!-- ... -->
- </dx-file-manager>
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { AppComponent } from './app.component';
- import { DxFileManagerModule } from 'devextreme-angular';
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- DxFileManagerModule
- ],
- //...
- })
- export class AppModule { }
