You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Template Support in Blazor File Manager Component | Syncfusion
4
-
description: Checkout and learn here all about template support in Syncfusion Blazor File Manager component and more.
4
+
description: Learn how to use template support in Syncfusion Blazor File Manager to customize the navigation pane, large icon view, and details view with dropdown actions.
5
5
platform: Blazor
6
6
control: File Manager
7
7
documentation: ug
8
8
---
9
9
10
10
# Template Support in Blazor File Manager Component
11
11
12
-
The File Manager component provides extensive template support for customizing the appearance of the Navigation pane, Large icons view, and Details view. This allows you to create a personalized file management experience by defining custom layouts for file and folder displays.
13
-
14
-
This File Manager sample demonstrates the following templates:
15
-
16
-
***NavigationPaneTemplate** - Customizes the appearance of nodes in the navigation tree with icons based on folder names.
17
-
***LargeIconsTemplate** - Displays files and folders with styled backgrounds and action menus in the large icons view.
18
-
***FileManagerDetailsViewSettings Template** - Customizes column content such as file name, size, and modified date in the details view.
12
+
The File Manager component provides extensive template support for customizing the appearance of the **Navigation pane**, **Large icons view**, and **Details view**. This allows you to create a personalized file management experience by defining custom layouts for file and folder displays.
19
13
20
14
File operations such as Open, Delete, Download, and Refresh can be handled through a dropdown menu displayed in each item. The `ItemSelected` event initiates each action by calling the corresponding File Manager methods:
21
15
@@ -24,6 +18,125 @@ File operations such as Open, Delete, Download, and Refresh can be handled throu
24
18
*[DownloadFilesAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.FileManager.SfFileManager-1.html#Syncfusion_Blazor_FileManager_SfFileManager_1_DownloadFilesAsync_System_String___) - Downloads the selected files.
25
19
*[RefreshFilesAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.FileManager.SfFileManager-1.html#Syncfusion_Blazor_FileManager_SfFileManager_1_RefreshFilesAsync) - Refreshes the current directory.
26
20
21
+
This article demonstrates how to:
22
+
23
+
- Customize folder icons using [`NavigationPaneTemplate`](#navigation-template)
24
+
- Show visual tiles using [`LargeIconsTemplate`](#large-icons-template)
25
+
- Format grid rows in [`DetailsView Template`](#details-view-template)
26
+
- Add dropdown actions like Open, Delete, Refresh and Download
27
+
28
+
## Navigation Template
29
+
30
+
The navigation pane supports templates through the `NavigationPaneTemplate`, enabling you to show folder icons based on folder-specific names.
The `LargeIconsTemplate` allows full customization of how folders and files are displayed in the large tiles/grid view. You can add background images, file-type icons, and dropdown menu actions.
<div class="file-formattedDate">Created on @item.DateCreated.ToString("MMMM d, yyyy")</div>
80
+
</div>
81
+
}
82
+
</LargeIconsTemplate>
83
+
84
+
```
85
+
86
+
## Details View Template
87
+
88
+
Details view uses `FileManagerDetailsViewSettings` to customize the grid layout of file data. With templates, you can format file names, sizes, and even render action menus per row.
0 commit comments