User Interface in Blazor FileManager Component

17 Jan 20223 minutes to read

The file manager UI is comprised of several sections like view, toolbar, breadcrumb, context menu, and so on. The UI of the file manager is enhanced with Details View for browsing files and folders in a grid, Navigation Pane for folder navigation, and Toolbar for file operations. The file manager with all features has the following sections in its UI.

  • Toolbar (For direct access to file operations)
  • Navigation Pane (For easy navigation between folders)
  • Breadcrumb (For parent folder navigations)
  • View (For browsing files and folders using large icon view or details view)
  • Context Menu (For accessing file operations)

User Interface in Blazor FileManager

The basic file manager is a light weight component with all the basic functions. The basic file manager has the following sections in its UI to browse files and folders and manage them with file operations.

  • Breadcrumb (For parent folder navigations)
  • View (Large Icons view for browsing files and folders)
  • Context Menu (For accessing file operations)

Blazor FileManager

Toolbar

The Toolbar provides easy access to the file operations using different buttons and it is presented at the top of the file manager.

If the toolbar items exceed the size of the toolbar, then the exceeding toolbar size will be moved to toolbar popup with a dropdown button at the end of toolbar.

Refer Toolbar section in file operations to know more about the buttons present in toolbar.

Blazor FileManager with Toolbar

Files and folders navigation

The file manager provides navigation between files and folders using the following two options.

The navigation pane displays the folder hierarchy of the file system and provides easy navigation to the desired folder. Using NavigationPaneSettings, minimum and maximum width of the navigation pane can be changed. The navigation pane can be shown or hidden using the Visible option in the NavigationPaneSettings.

The file manager provides breadcrumb for navigating to the parent folders. The breadcrumb in the file manager is responsible for resizing. Whenever the path length exceeds the breadcrumb length, a dropdown button will be added at the starting of the breadcrumb to hold the parent folders adjacent to root.

Blazor FileManager with BreadCrumb

View

View is the section where the files and folders are displayed for the user to browse. The file manager has two types of views to display the files and folders.

The Large Icons View is the default starting view in the file manager. The view can be changed by using the Toolbar view button or by using the view menu in Context Menu. The View API can also be used to change the initial view of the file manager.

Large icons view

In the large icons view, the thumbnail icons will be shown in a larger size, which displays the data in a form that best suits their content. For image and video type files, a preview will be displayed. Extension thumbnails will be displayed for other type files.

Blazor FileManager with LargeIconView

Details view

In the details view, the files are displayed in a sorted list order. This file list comprises of several columns of information about the files such as Name, Date Modified, Type, and Size. Each file has its own small icon representing the file type. Additional columns can be added using DetailsViewSettings API. The details view allows you to perform sorting using column header.

Blazor FileManger with DetailsView

Context menu

The context menu appears on user interaction such as right-click. The file manager is provided with context menu support to perform list of file operations with the files and folders. Context menu appears with varying menu items based on the targets such as file, folder (including navigation pane folders), and layout (empty area in view).

Context menu can be customized using the ContextMenuSettings, MenuOpened, and OnMenuClick events.

Refer Context Menu section in file operations to know more about the menu items present in context menu.

Blazor FileManager with Context Menu