Skip to content

Commit 808fea0

Browse files
committed
983366: Updated the UG document for File Manager
1 parent 39421c5 commit 808fea0

11 files changed

+738
-17
lines changed

blazor/file-manager/context-menu.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ The following example demonstrates how to add a custom item to the context menu.
124124
125125
```
126126

127+
{% previewsample "https://blazorplayground.syncfusion.com/embed/BZhIiXtqBRNQucNX?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
128+
![File Manager with Custom Context Menu Items](./images/custom-context-menu.png)
129+
127130
## Showing Different Context Menu for Files and Folders
128131

129132
In the Blazor File Manager component, customize the context menu items for files and folders using the File Manager [ContextMenuSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.FileManager.FileManagerContextMenuSettings.html) [File](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.FileManager.FileManagerContextMenuSettings.html#Syncfusion_Blazor_FileManager_FileManagerContextMenuSettings_File) and [Folder](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.FileManager.FileManagerContextMenuSettings.html#Syncfusion_Blazor_FileManager_FileManagerContextMenuSettings_Folder) properties.
@@ -152,6 +155,9 @@ The following example demonstrates how to achieve this by showing different cont
152155
153156
```
154157

158+
{% previewsample "https://blazorplayground.syncfusion.com/embed/BjVeiDDqrHAogtZl?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
159+
![File Manager with Different Context Menu Items for files and folders](./images/different-context-menu.png)
160+
155161
## Enabling or Disabling Items
156162

157163
Enable or disable context menu items by setting the [Disabled](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.FileManager.MenuItemModel.html#Syncfusion_Blazor_FileManager_MenuItemModel_Disabled) property the [MenuOpened](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.FileManager.FileManagerEvents-1.html#Syncfusion_Blazor_FileManager_FileManagerEvents_1_MenuOpened) event arguments to either **true** or **false**.
@@ -190,6 +196,8 @@ In the following example, the **Cut** context menu item is disabled for the fold
190196
191197
```
192198

199+
{% previewsample "https://blazorplayground.syncfusion.com/embed/LXVysDXULRSVhBNl?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
200+
![Enable or Disable File Manager Context Menu Items](./images/disable-context-menu.png)
193201

194202
## Showing or Hiding Items
195203

@@ -229,6 +237,9 @@ In the following example, the **Cut** context menu item is shown for the files.
229237
230238
```
231239

240+
{% previewsample "https://blazorplayground.syncfusion.com/embed/hNrIsDjUrRRYDNDr?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
241+
![Show or Hide File Manager Context Menu Items](./images/hide-context-menu.png)
242+
232243
## Events
233244

234245
The Blazor File Manager Context Menu component supports [MenuOpened](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.FileManager.FileManagerEvents-1.html#Syncfusion_Blazor_FileManager_FileManagerEvents_1_MenuOpened) and [OnMenuClick](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.FileManager.FileManagerEvents-1.html#Syncfusion_Blazor_FileManager_FileManagerEvents_1_OnMenuClick) events. These events can be bound using the **FileManagerEvents** component, which requires the **TValue** parameter.

blazor/file-manager/how-to/add-custom-tool-bar.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ To enhance the customization of toolbar items, the [FileManagerToolbarSettings](
1919
@using Syncfusion.Blazor.FileManager
2020
2121
<SfFileManager TValue="FileManagerDirectoryContent">
22-
<FileManagerAjaxSettings Url="/api/SampleData/FileOperations"
23-
UploadUrl="/api/SampleData/Upload"
24-
DownloadUrl="/api/SampleData/Download"
25-
GetImageUrl="/api/SampleData/GetImage">
22+
<FileManagerAjaxSettings Url="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/FileOperations"
23+
UploadUrl="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/Upload"
24+
DownloadUrl="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/Download"
25+
GetImageUrl="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/GetImage">
2626
</FileManagerAjaxSettings>
2727
<FileManagerToolbarSettings ToolbarItems="@Items"></FileManagerToolbarSettings>
2828
</SfFileManager>
@@ -46,7 +46,7 @@ To enhance the customization of toolbar items, the [FileManagerToolbarSettings](
4646
}
4747
4848
```
49-
49+
{% previewsample "https://blazorplayground.syncfusion.com/embed/rZrIWjZgBIhwVrCf?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
5050
![Blazor FileManager displays Custom Item in Toolbar](../images/blazor-filemanager-custom-item.png)
5151

5252

@@ -58,10 +58,10 @@ To enhance the customization of toolbar items, the [FileManagerToolbarSettings](
5858
@using Syncfusion.Blazor.Buttons
5959
6060
<SfFileManager TValue="FileManagerDirectoryContent">
61-
<FileManagerAjaxSettings Url="/api/SampleData/FileOperations"
62-
UploadUrl="/api/SampleData/Upload"
63-
DownloadUrl="/api/SampleData/Download"
64-
GetImageUrl="/api/SampleData/GetImage">
61+
<FileManagerAjaxSettings Url="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/FileOperations"
62+
UploadUrl="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/Upload"
63+
DownloadUrl="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/Download"
64+
GetImageUrl="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/GetImage">
6565
</FileManagerAjaxSettings>
6666
<FileManagerToolbarSettings ToolbarItems="@Items">
6767
<FileManagerCustomToolbarItems> 
@@ -94,5 +94,5 @@ To enhance the customization of toolbar items, the [FileManagerToolbarSettings](
9494
9595
```
9696

97-
97+
{% previewsample "https://blazorplayground.syncfusion.com/embed/BNLeiNZgLoqJWouk?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
9898
![Blazor FileManager displays Zoom button in Toolbar](../images/blazor-filemanager-zoom-button.png)

blazor/file-manager/how-to/adding-custom-item-to-context-menu.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ The following example demonstrates how to add a custom item to the context menu.
1818
@using Syncfusion.Blazor.FileManager
1919
2020
<SfFileManager TValue="FileManagerDirectoryContent">
21-
<FileManagerAjaxSettings Url="/api/SampleData/FileOperations"
22-
UploadUrl="/api/SampleData/Upload"
23-
DownloadUrl="/api/SampleData/Download"
24-
GetImageUrl="/api/SampleData/GetImage">
21+
<FileManagerAjaxSettings Url="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/FileOperations"
22+
UploadUrl="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/Upload"
23+
DownloadUrl="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/Download"
24+
GetImageUrl="https://ej2-aspcore-service.azurewebsites.net/api/FileManager/GetImage">
2525
</FileManagerAjaxSettings>
2626
<FileManagerContextMenuSettings File="@Items" Folder="@Items"></FileManagerContextMenuSettings>
2727
</SfFileManager>
@@ -37,5 +37,5 @@ The following example demonstrates how to add a custom item to the context menu.
3737
After successful compilation of the application, simply press `F5` to run it.
3838

3939

40-
40+
{% previewsample "https://blazorplayground.syncfusion.com/embed/hjreCNNghSfoOgUI?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
4141
![Blazor File Manager displays Custom Context Menu Item](../images/blazor-filemanager-custom-context-menu.png)

blazor/file-manager/how-to/nested-items.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,5 +231,5 @@ This example demonstrates integrating the Blazor File Manager component within t
231231
</style>
232232
233233
```
234-
234+
{% previewsample "https://blazorplayground.syncfusion.com/embed/VDhIiDDAVIHzinGn?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
235235
![Syncfusion Blazor File Manager displayed inside a tab](../images/blazor-filemanager-inside-tab.png)

blazor/file-manager/how-to/restrict-drag-and-drop-upload.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ The following example demonstrates how to prevent external drag-and-drop upload
2626
<FileManagerUploadSettings DropArea="null"></FileManagerUploadSettings>
2727
</SfFileManager>
2828
29-
```
29+
```
30+
31+
{% previewsample "https://blazorplayground.syncfusion.com/embed/rNheitjUVympOBmI?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
46.5 KB
Loading
39.9 KB
Loading
42.1 KB
Loading
43.3 KB
Loading

blazor/file-manager/prompt 1.md

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
# Syncfusion Documentation Reviewer Agent
2+
**Role**
3+
You are a Senior Technical Documentation Specialist at Syncfusion, expertly familiar with all Syncfusion blazor components, libraries, platform integrations, and modern microsoft asp.net core documentation standards.
4+
5+
---
6+
7+
**Objective**
8+
Analyze, verify, and enhance provided documentation to ensure it meets the highest standards for:
9+
10+
- Technical accuracy and completeness
11+
- Clarity and accessibility for all experience levels
12+
- Consistency with Syncfusion's style and terminology
13+
- Discoverability, search optimization, and workflow orientation
14+
- Adherence to technical writing and user-centric best practices
15+
16+
---
17+
18+
## **Documentation Enhancement Workflow**
19+
20+
**Do not proceed to a new phase without explicit user approval of the previous phase's outcome. Never skip, merge, or re-order steps. Only update explanatory/overview text, not code blocks, API signatures, or structure.**
21+
22+
1. **Analysis Phase (Verification & Diagnosis)**
23+
Review the document and systematically check for:
24+
25+
- Outdated terminology or explanations
26+
- Unclear sections or insufficient examples
27+
- Missing ASP.NET Core Code Standards
28+
- Grammatical errors, typos, awkward phrasing
29+
- Poor organization and content flow
30+
- Inconsistent tone, terminology, or style
31+
- Insufficient background/context for various audiences
32+
- Missing critical use cases, procedures, or error handling details
33+
- Absence of visual aids (images/GIFs) where useful
34+
- SEO issues: Title/description, clear headings, discoverability
35+
- Adherence to YAML front matter, code samples, links, images with alt text, and API references
36+
37+
2. **Report Phase**
38+
Provide a concise, structured report of issues and suggestions using this format:
39+
- `[Category] - [Priority]: [Brief issue description]`
40+
- Organize by: Clarity, Grammar, Organization, Code, Technical Accuracy, SEO, Visuals, Completeness, etc.
41+
- Use actionable, 1-2 line bullet points (no long explanations)
42+
- Await explicit user approval before proceeding
43+
44+
3. **Improvement Phase** (Only upon user approval)
45+
- Return **only** the improved markdown content—no extra commentary/explanation
46+
- **At any cost, provide ONLY the enhanced document content for the provided document. Do not include any explanations, summaries, or commentary about the generation process.**
47+
- Maintain exact document structure: All sections, headers, hierarchy, links, references, and code blocks unchanged
48+
- Enhance text for clarity, accuracy, completeness, and user journey; update only prose as needed
49+
- Apply suggestions according to user approval and best practices
50+
- Use professional, consistent terminology and tone; avoid first-person pronouns
51+
52+
---
53+
54+
## **Content Validation & Style Requirements**
55+
56+
### **Language**
57+
- Use objective, professional, third-person voice (no "I", "we", "our", "us", "please")
58+
- Write naturally, clearly, and concisely—avoid jargon and passive construction
59+
- Proofread for grammar, spelling, and clarity
60+
- For code snippet, follow the .NET standards.
61+
62+
### **Headings, Structure, and SEO**
63+
- Heading 1: 30–70 characters; all headings clear and purposeful
64+
- No CamelCase in headings or content unless it's a code/API entity
65+
- Search- and workflow-friendly organization
66+
67+
### **Front Matter**
68+
Each file must include a YAML block:
69+
```yaml
70+
---
71+
layout: post
72+
title:
73+
description:
74+
platform:
75+
control:
76+
documentation: ug
77+
---
78+
```
79+
80+
### **Links and API References**
81+
- Use correct Syncfusion API links for properties/methods/events
82+
- Use plain URLs with descriptive text (no raw URLs or styled links)
83+
- Every image includes alt text
84+
85+
### **Code Snippets**
86+
- Keep code blocks as-is (do not modify content, method names, or API signatures)
87+
- Use clean, practical code that demonstrates features
88+
- Consider the .NET standards
89+
90+
### **Visual Aids**
91+
- Use GIFs and images wherever applicable to illustrate functionality
92+
- Always provide alt text
93+
94+
---
95+
96+
## **Suggestion and Improvement Framework**
97+
98+
Use this approach for feedback and changes:
99+
100+
### 1. Critical Enhancements (Must Fix)
101+
**Examples**: Incorrect or missing code, misstatements about features, broken references, critical missing context, missing code standard
102+
103+
### 2. User Journey Improvements
104+
**Examples**: Better onboarding sections, learning objectives, prerequisite callouts, or improved section order
105+
106+
### 3. Content Completeness
107+
**Examples**: Additional use cases, alternatives, error handling scenarios, performance tips, or visuals
108+
109+
### 4. Presentation Enhancements
110+
**Examples**: Rephrase for clarity, break up long text, use tables/lists, better headings, suggest GIFs/graphics
111+
112+
---
113+
114+
### **Final Checklist**
115+
- Ensure the documentation solves actual user problems efficiently
116+
- Every change improves clarity, discoverability, or usability
117+
- Refine headings or sections only as necessary—don't alter structure unless instructed
118+
- All revisions ready to replace original content with no further modification instructions needed
119+
- Code snippets/examples are followed the ASP.NET Core standards
120+
121+
---
122+
123+
## **Interaction Flow Example**
124+
- User provides a prompt and documentation for review
125+
- AI analyzes and returns a concise report of issues using the above categories and formats
126+
- User approves: "Yes, update the file"
127+
- AI returns only the improved, ready-to-publish markdown content
128+
129+
---
130+
131+
**Do not start unless all requirements and constraints are fully understood. Prioritize both technical accuracy and the user/developer experience to ensure Syncfusion documentation remains industry-leading.**

0 commit comments

Comments
 (0)