Skip to content

Commit 9c97a0b

Browse files
committed
Merge branch '998328-Tree' of https://github.com/syncfusion-content/blazor-docs into 998328-Tree
2 parents 5ed787b + 6504ac9 commit 9c97a0b

File tree

11 files changed

+3866
-27
lines changed

11 files changed

+3866
-27
lines changed

blazor-toc.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4870,6 +4870,7 @@
48704870
</li>
48714871
<li> <a href="/blazor/treegrid/data-binding">Data Binding</a></li>
48724872
<li> <a href="/blazor/treegrid/custom-binding">Custom Binding</a></li>
4873+
<li> <a href="/blazor/treegrid/graphql">GraphQL Adaptor</a></li>
48734874
<li>
48744875
<a href="/blazor/treegrid/columns/columns">Columns</a>
48754876
<ul>

blazor/ai-coding-assistant/mcp-server.md

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,31 @@ Before you can invoke the `SyncfusionBlazorAssistant` MCP server, you need to co
5454
- **Arguments**: -y
5555
- **Server name**: syncfusionBlazorAssistant
5656

57-
You need to add your [Syncfusion API key](https://www.syncfusion.com/account/api-key) as an env parameter in the configuration file:
57+
#### API Key Configuration
5858

59-
```json
60-
"env": {
61-
"Syncfusion_API_Key": "YOUR_API_KEY"
62-
}
63-
```
59+
There are two options:
60+
61+
* **Using an API Key File (Recommended)**
62+
63+
Store your API key in a separate file and reference its path in the `Syncfusion_API_Key_Path` environment parameter. This approach is more secure as you don't expose the key directly in configuration files.
64+
65+
**Supported file formats:** `.txt` or `.key` file
66+
67+
```json
68+
"env": {
69+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH" // "D:\\syncfusion-key.txt" (or) "D:\\syncfusion-key.key"
70+
}
71+
```
72+
73+
* **Direct API Key**
74+
75+
Paste your `Syncfusion_API_Key` directly in the configuration file's environment parameter.
76+
77+
```json
78+
"env": {
79+
"Syncfusion_API_Key": "YOUR_API_KEY"
80+
}
81+
```
6482

6583
Below are setup instructions for popular MCP clients:
6684

@@ -86,6 +104,8 @@ Below are setup instructions for popular MCP clients:
86104
"@syncfusion/blazor-assistant@latest"
87105
],
88106
"env": {
107+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
108+
// or
89109
"Syncfusion_API_Key": "YOUR_API_KEY"
90110
}
91111
}
@@ -114,6 +134,8 @@ Below are setup instructions for popular MCP clients:
114134
"@syncfusion/blazor-assistant@latest"
115135
],
116136
"env": {
137+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
138+
// or
117139
"Syncfusion_API_Key": "YOUR_API_KEY"
118140
}
119141
}
@@ -140,7 +162,9 @@ To configure an MCP server for a specific workspace, you can create a `.cursor/m
140162
"@syncfusion/blazor-assistant@latest"
141163
],
142164
"env": {
143-
"Syncfusion_API_Key": "YOUR_API_KEY"
165+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
166+
// or
167+
"Syncfusion_API_Key": "YOUR_API_KEY"
144168
}
145169
}
146170
}
@@ -165,7 +189,9 @@ For more details, refer to the [Cursor documentation](https://cursor.com/docs/co
165189
"@syncfusion/blazor-assistant@latest"
166190
],
167191
"env": {
168-
"Syncfusion_API_Key": "YOUR_API_KEY"
192+
"Syncfusion_API_Key_Path": "YOUR_API_KEY_FILE_PATH",
193+
// or
194+
"Syncfusion_API_Key": "YOUR_API_KEY"
169195
}
170196
}
171197
}

blazor/blockeditor/built-in-blocks/embed.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ You can render an `Image` block by setting the `BlockType` property to `Image` i
2121

2222
#### Global Image Settings
2323

24-
You can configure global settings for image blocks using the `ImageBlockSettings` property in the Block Editor root configuration. This ensures consistent behavior for all images in the editor.
24+
You can configure global settings for image blocks using the `BlockEditorImageBlock` tag directive. This ensures consistent behavior for all images in the editor.
2525

26-
The `ImageBlockSettings` property supports the following options:
26+
The `BlockEditorImageBlock` tag directive supports the following options:
2727

2828
| Property | Description | Default Value |
2929
|----------|-------------|---------------|

blazor/blockeditor/built-in-blocks/inline-content.md

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -74,30 +74,24 @@ The Block Editor comes with different built-in label items. These includes:
7474
- **Progress**: In-progress, On-hold, Done
7575
- **Priority**: High, Medium, Low
7676

77-
### Customize label
77+
### Global label settings
7878

79-
You can customize the labels by using the `Properties` property along with `ContentType` as `Label`.
79+
You can configure global settings for all label inline contents using the `BlockEditorLabel` tag directive.
8080

81-
### ContentType and Properties
81+
The `BlockEditorLabel` tag directive supports the following options:
8282

83-
```cshtml
84-
// Adding inline label
85-
new BlockModel
86-
{
87-
BlockType = BlockType.Paragraph,
88-
Content = {new ContentModel{ContentType = ContentType.Label, Properties = new LabelContentSettings {
89-
LabelID = "progress"
90-
}}}
91-
}
92-
```
83+
| Property | Description |
84+
|----------|-------------|
85+
| TriggerChar | Specifies the character that opens the label suggestions popup. |
86+
| Items | Specifies the label items. |
9387

94-
### Trigger Character configuration
88+
#### Trigger Character configuration
9589

9690
Use the `TriggerChar` property to define the character that opens the label suggestions popup. The default trigger character is `$`.
9791

98-
### Label items configuration
92+
#### Label items configuration
9993

100-
Define the available labels using the `Items` array. When a user types the trigger character, a popup will show matching items.
94+
Define the available labels using the `Items` property present in the `BlockEditorLabel` tag directive. When a user types the trigger character, a popup will show matching items.
10195

10296
Each item supports the following properties:
10397

@@ -112,7 +106,24 @@ Each item supports the following properties:
112106

113107
When users type the trigger character, a popup will appear showing matching label items from which they can select. The selected label will be inserted into the content as a Label content item.
114108

115-
### Using labels with group headers
109+
#### Customize label
110+
111+
You can customize the labels by using the `Properties` property along with `ContentType` as `Label`.
112+
113+
#### ContentType and Properties
114+
115+
```cshtml
116+
// Adding inline label
117+
new BlockModel
118+
{
119+
BlockType = BlockType.Paragraph,
120+
Content = {new ContentModel{ContentType = ContentType.Label, Properties = new LabelContentSettings {
121+
LabelID = "progress"
122+
}}}
123+
}
124+
```
125+
126+
#### Using labels with group headers
116127

117128
Labels with the same `GroupBy` value will be grouped together in the label selection popup:
118129

blazor/treegrid/data-binding.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,7 @@ namespace WebAPI.Controller
11081108
{% endtabs %}
11091109
11101110
N> The LoadChildOnDemand feature is not applicable for local data binding.
1111+
<br/> N> The `LoadChildOnDemand` support is also available for virtualization.
11111112
11121113
11131114
<!-- Custom Adaptor

0 commit comments

Comments
 (0)