Skip to content

Commit 0077adc

Browse files
Merge pull request #4614 from syncfusion-content/898334-hotfix31.2
898334: Added ug for Add Style and Appearance section for the Angular…
2 parents ff6293c + 4479c98 commit 0077adc

9 files changed

+208
-0
lines changed
Lines changed: 206 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,206 @@
1+
---
2+
layout: post
3+
title: Style Customize in ##Platform_Name## File Manager control | Syncfusion
4+
description: Learn here all about How to add style and appearance in ##Platform_Name## File Manager control of Syncfusion Essential JS 2 and more.
5+
platform: ej2-asp-core-mvc
6+
control: File Manager
7+
publishingplatform: ##Platform_Name##
8+
documentation: ug
9+
---
10+
11+
# How to customize style and appearance in File Manager
12+
13+
The following content provides the exact CSS structure that can be used to modify the control's appearance based on the user preference.
14+
15+
## Customizing the File Manager navigation pane
16+
17+
To customize the File Manager navigation pane, use the `.e-navigation` selector and apply styles.
18+
19+
The following example shows customize the navigation pane for these sections.
20+
21+
```css
22+
.sample-container {
23+
margin: 10px 10px 10px 10px;
24+
}
25+
26+
/*
27+
Set background color for the File Manager navigation pane */
28+
.e-filemanager .e-navigation {
29+
background: #3a0647;
30+
}
31+
32+
/* Highlight the active item in the TreeView inside the navigation pane */
33+
.e-filemanager .e-treeview .e-list-item.e-active > .e-fullrow {
34+
background: #c3d3f9a1;
35+
}
36+
37+
/* Set text color for TreeView items in the navigation pane */
38+
.e-filemanager .e-treeview .e-list-text {
39+
color: #fff;
40+
}
41+
```
42+
43+
![File Manager Customization Navigation Pane](./images/customize_navigation_pane.png)
44+
45+
## Customizing the File Manager layout
46+
47+
To customize the File Manager layout, use the `.e-layout-content` selector and apply styles.
48+
49+
```css
50+
51+
.sample-container {
52+
margin: 10px 10px 10px 10px;
53+
}
54+
55+
/* Style for breadcrumb (address bar) */
56+
.e-filemanager .e-layout-content .e-address {
57+
background: #dee2e6;
58+
}
59+
60+
/* Customize the background for the Large Icons view */
61+
.e-filemanager .e-layout-content .e-large-icons {
62+
background: #f8f9fa;
63+
}
64+
65+
/* Customize the background for the Details view table and content area */
66+
.e-filemanager .e-layout-content .e-grid .e-table,
67+
.e-filemanager .e-grid .e-gridcontent .e-content {
68+
background: #f8f9fa;
69+
}
70+
71+
```
72+
73+
![File Manager Customization Layout](./images/customize_layout.png)
74+
75+
## Customizing the File Manager thumbnail
76+
77+
To customize the thumbnails in the File Manager, you can apply background-image styles to specific CSS selectors that represent different file types, as listed in the table below.
78+
79+
|File Type|CSS Selector|
80+
|----|----|
81+
|Image|.e-fe-image|
82+
|Music|.e-fe-music|
83+
|Excel|.e-fe-xlsx|
84+
|Video|.e-fe-video|
85+
|PowerPoint|.e-fe-pptx|
86+
|RAR|.e-fe-rar|
87+
|ZIP|.e-fe-zip|
88+
|Text|.e-fe-txt|
89+
|JavaScript|.e-fe-js|
90+
|CSS|.e-fe-css|
91+
|HTML|.e-fe-html|
92+
|Unknown|.e-fe-unknown|
93+
|Executable|.e-fe-exe|
94+
|MSI|.e-fe-msi|
95+
|PHP|.e-fe-php|
96+
|Word|.e-fe-doc|
97+
|Word(docx)|.e-fe-docx|
98+
|XML|.e-fe-xml|
99+
|Folder|.e-fe-folder|
100+
101+
The following example demonstrates how to customize the File Manager's thumbnail icon for folders:
102+
103+
```css
104+
105+
/* Applies to both Large Icons view and Details view in the File Manager */
106+
107+
.e-filemanager .e-large-icons .e-fe-folder, .e-filemanager .e-grid .e-fe-folder {
108+
background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1s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
115+
## Customizing the File Manager Toolbar
116+
117+
To customize the File Manager toolbar items, use the `.e-toolbar` selector and apply styles.
118+
119+
```css
120+
121+
.sample-container {
122+
margin: 10px 10px 10px 10px;
123+
}
124+
125+
/* Style for individual toolbar buttons */
126+
.e-filemanager .e-toolbar .e-tbar-btn {
127+
background: #0d9cf6;
128+
border: 1px solid #000000;
129+
}
130+
131+
/* Style for toolbar icons */
132+
.e-filemanager .e-toolbar .e-tbar-btn .e-icons {
133+
color: #ffffff;
134+
}
135+
136+
/* Style for toolbar button text */
137+
.e-filemanager .e-toolbar .e-toolbar-item .e-tbar-btn .e-tbar-btn-text {
138+
color: #ffffff;
139+
}
140+
141+
```
142+
143+
![File Manager Customization Toolbar](./images/customize_toolbar.png)
144+
145+
## Customizing the File Manager selected files/folders
146+
147+
To customize the File Manager selected files/folders, use the below selectors and apply styles.
148+
149+
```css
150+
151+
.sample-container {
152+
margin: 10px 10px 10px 10px;
153+
}
154+
155+
/* Highlight for active and hover item in Large Icons view */
156+
.e-filemanager li.e-list-item.e-large-icon.e-active,
157+
.e-filemanager li.e-list-item.e-large-icon.e-active:hover {
158+
background: #dee2e6;
159+
border: 2px solid #000000;
160+
border-radius: 10%;
161+
}
162+
163+
/* Color for text */
164+
.e-filemanager .e-large-icons .e-active {
165+
color: #212529;
166+
}
167+
168+
/* Highlight for active row in Details view */
169+
.e-filemanager .e-grid td.e-active {
170+
background: #dee2e6;
171+
}
172+
173+
```
174+
175+
![File Manager Customization Selected File](./images/customize_selected_file.png)
176+
177+
## Customizing the File Manager Dialog
178+
179+
To customize the dialog popup in the File Manager, you can apply styles to specific CSS selectors, as listed below.
180+
181+
|Element|CSS Selector|
182+
|---------|------------|
183+
|Header|`.e-dlg-header-content`|
184+
|Content|`.e-dlg-content`|
185+
|Overlay|`.e-dlg-overlay`|
186+
|Footer|`.e-footer-content`|
187+
188+
```css
189+
190+
.sample-container {
191+
margin: 10px 10px 10px 10px;
192+
}
193+
194+
/* For File Manager Dialog header */
195+
.e-filemanager .e-dialog .e-dlg-header-content {
196+
background-color: #0d6efd;
197+
}
198+
/* For File Manager Dialog header close icon and text*/
199+
.e-filemanager .e-dialog .e-icon-dlg-close,
200+
.e-filemanager .e-dialog .e-dlg-header {
201+
color: #fff;
202+
}
203+
204+
205+
```
206+
![File Manager Customization dialog](./images/customize_dialog.png)
41.5 KB
Loading
46.2 KB
Loading
47.4 KB
Loading
36.4 KB
Loading
18.8 KB
Loading
36.9 KB
Loading

ej2-asp-core-toc.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,7 @@
11051105
<li><a href="/ej2-asp-core/file-manager/virtualization">Virtualization</a></li>
11061106
<li><a href="/ej2-asp-core/file-manager/access-control">Access Control</a></li>
11071107
<li><a href="/ej2-asp-core/file-manager/upload">Upload</a></li>
1108+
<li><a href="/ej2-asp-core/file-manager/add-style-and-appearance-for-file-manager-component">Style and Appearance</a></li>
11081109
<li><a href="/ej2-asp-core/file-manager/localization">Localization</a></li>
11091110
<li><a href="/ej2-asp-core/file-manager/accessibility">Accessibility</a></li>
11101111
<li>How To

ej2-asp-mvc-toc.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,7 @@
10401040
<li><a href="/ej2-asp-mvc/file-manager/virtualization">Virtualization</a></li>
10411041
<li><a href="/ej2-asp-mvc/file-manager/access-control">Access Control</a></li>
10421042
<li><a href="/ej2-asp-mvc/file-manager/upload">Upload</a></li>
1043+
<li><a href="/ej2-asp-mvc/file-manager/add-style-and-appearance-for-file-manager-component">Style and Appearance</a></li>
10431044
<li><a href="/ej2-asp-mvc/file-manager/localization">Localization</a></li>
10441045
<li><a href="/ej2-asp-mvc/file-manager/accessibility">Accessibility</a></li>
10451046
<li>How To

0 commit comments

Comments
 (0)