Skip to content

Commit 4dfb4aa

Browse files
Added EnableFileName configuration option that enables hiding file name from the toolbar
1 parent 356562c commit 4dfb4aa

File tree

6 files changed

+39
-9
lines changed

6 files changed

+39
-9
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,18 @@ builder.Services
222222
});
223223
```
224224

225+
#### Hide File Name
226+
227+
To hide the file name on the header pane, set `EnableFileName` to `false`. By default, the file name is visible.
228+
229+
```cs
230+
builder.Services
231+
.AddGroupDocsViewerUI(config =>
232+
{
233+
config.EnableFileName = false; // Hide file name
234+
});
235+
```
236+
225237
#### Hide thumbnails
226238

227239
To hide thumbnails pane, set `EnableThumbnails` to `false`. By default, this pane is visible.

build/dependencies.props

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@
3636

3737
<PropertyGroup Label="GroupDocs.Viewer UI Package Versions">
3838
<GroupDocsViewerUI>8.0.1</GroupDocsViewerUI>
39-
<GroupDocsViewerUIApi>8.0.0</GroupDocsViewerUIApi>
40-
<GroupDocsViewerUIApiLocalCache>8.0.0</GroupDocsViewerUIApiLocalCache>
41-
<GroupDocsViewerUIApiInMemoryCache>8.0.0</GroupDocsViewerUIApiInMemoryCache>
42-
<GroupDocsViewerUIApiLocalStorage>8.0.0</GroupDocsViewerUIApiLocalStorage>
43-
<GroupDocsViewerUIApiCloudStorage>8.0.0</GroupDocsViewerUIApiCloudStorage>
44-
<GroupDocsViewerUIApiAzureStorage>8.0.0</GroupDocsViewerUIApiAzureStorage>
39+
<GroupDocsViewerUIApi>8.0.1</GroupDocsViewerUIApi>
40+
<GroupDocsViewerUIApiLocalCache>8.0.1</GroupDocsViewerUIApiLocalCache>
41+
<GroupDocsViewerUIApiInMemoryCache>8.0.1</GroupDocsViewerUIApiInMemoryCache>
42+
<GroupDocsViewerUIApiLocalStorage>8.0.1</GroupDocsViewerUIApiLocalStorage>
43+
<GroupDocsViewerUIApiCloudStorage>8.0.1</GroupDocsViewerUIApiCloudStorage>
44+
<GroupDocsViewerUIApiAzureStorage>8.0.1</GroupDocsViewerUIApiAzureStorage>
4545
<GroupDocsViewerUIApiAwsS3Storage>8.0.1</GroupDocsViewerUIApiAwsS3Storage>
46-
<GroupDocsViewerUICore>8.0.0</GroupDocsViewerUICore>
46+
<GroupDocsViewerUICore>8.0.1</GroupDocsViewerUICore>
4747
<GroupDocsViewerUISelfHostApi>8.0.1</GroupDocsViewerUISelfHostApi>
4848
<GroupDocsViewerUISelfHostApiCrossPlatform>8.0.1</GroupDocsViewerUISelfHostApiCrossPlatform>
49-
<GroupDocsViewerUICloudApi>8.0.0</GroupDocsViewerUICloudApi>
49+
<GroupDocsViewerUICloudApi>8.0.1</GroupDocsViewerUICloudApi>
5050
</PropertyGroup>
5151

5252
</Project>

src/GroupDocs.Viewer.UI.Core/Configuration/Config.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ public class Config
4747
/// </summary>
4848
public bool EnableToolbar { get; set; } = true;
4949

50+
/// <summary>
51+
/// Show or hide filename
52+
/// </summary>
53+
public bool EnableFileName { get; set; } = true;
54+
5055
/// <summary>
5156
/// Show or hide thumbnails pane
5257
/// </summary>

src/GroupDocs.Viewer.UI/App/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GroupDocs.Viewer.UI/Core/Extensions/UIResourceExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ private static string SerializeWindowConfig(string apiEndpoint, Config config)
6363
enableContextMenu = config.EnableContextMenu,
6464
enableZoom = config.EnableZoom,
6565
enableSearch = config.EnableSearch,
66+
enableFileName = config.EnableFileName,
6667
enableThumbnails = config.EnableThumbnails,
6768
enablePrint = config.EnablePrint,
6869
enablePresentation = config.EnablePresentation,

src/GroupDocs.Viewer.UI/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,18 @@ builder.Services
218218
});
219219
```
220220

221+
#### Hide File Name
222+
223+
To hide the file name on the header pane, set `EnableFileName` to `false`. By default, the file name is visible.
224+
225+
```cs
226+
builder.Services
227+
.AddGroupDocsViewerUI(config =>
228+
{
229+
config.EnableFileName = false; // Hide file name
230+
});
231+
```
232+
221233
#### Hide thumbnails
222234

223235
To hide thumbnails pane, set `EnableThumbnails` to `false`. By default, this pane is visible.

0 commit comments

Comments
 (0)