You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blazor/ai-assistview/events.md
+36-5Lines changed: 36 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,21 +82,20 @@ The [PromptChanged](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inte
82
82
}
83
83
```
84
84
85
-
## AttachmentUploadStart
85
+
## OnAttachmentUploadReady
86
86
87
-
The [AttachmentUploadStart](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_AttachmentUploadStart) event is triggered before the attached files upload begins in the AI AssistView
87
+
The [OnAttachmentUploadReady](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_OnAttachmentUploadReady) event is triggered before the attached files upload begins in the AI AssistView
@@ -213,3 +212,35 @@ The [AttachmentRemoved](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.
213
212
}
214
213
}
215
214
```
215
+
216
+
## AttachmentClick
217
+
218
+
The [AttachmentClick](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_AttachmentClick) event is triggered when an attached file is clicked in the AI AssistView.
var defaultResponse = "For real-time prompt processing, connect the AI AssistView component to your preferred AI service, such as OpenAI or Azure Cognitive Services. Ensure you obtain the necessary API credentials to authenticate and enable seamless integration.";
Copy file name to clipboardExpand all lines: blazor/ai-assistview/file-attachments.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,3 +127,37 @@ You can use the `MaxFileSize` property to allow the maximum file size of the upl
127
127
```
128
128
129
129

130
+
131
+
### Setting maximum count
132
+
133
+
Restrict how many files can be attached at once using `MaximumCount` property. The default value is `10`. If users select more than the allowed count, the maximum count reached error will be displayed.
var defaultResponse = "For real-time prompt processing, connect the AI AssistView component to your preferred AI service, such as OpenAI or Azure Cognitive Services. Ensure you obtain the necessary API credentials to authenticate and enable seamless integration.";
158
+
args.Response = defaultResponse;
159
+
}
160
+
}
161
+
```
162
+
163
+

Copy file name to clipboardExpand all lines: blazor/ai-assistview/toolbar-items.md
+148-2Lines changed: 148 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,157 @@ documentation: ug
9
9
10
10
# Toolbar items in Blazor AI AssistView component
11
11
12
-
You can render the AI AssistView toolbar items by using the [AssistViewToolbarItem](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.AssistViewToolbarItem.html), [PromptToolbarItem](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.PromptToolbarItem.html) & [ResponseToolbarItem](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.ResponseToolbarItem.html) tag directives.
12
+
You can render the AI AssistView toolbar items by using the [AssistViewToolbarItem](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.AssistViewToolbarItem.html), [PromptToolbarItem](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.PromptToolbarItem.html), [ResponseToolbarItem](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.ResponseToolbarItem.html) & `AssistViewFooterToolbar` tag directives.
13
+
14
+
## Configure footer toolbar
15
+
16
+
By default, the footer toolbar renders the `send`, if attachment is enabled the `attachment` item will also be rendered which allows users to send the prompt text or attach files as needed.
17
+
18
+
In the following example, AI AssistView component rendered with footer toolbar items such as `send` and `attachment` icons.
var defaultResponse = "For real-time prompt processing, connect the AI AssistView component to your preferred AI service, such as OpenAI or Azure Cognitive Services. Ensure you obtain the necessary API credentials to authenticate and enable seamless integration.";
38
+
args.Response = defaultResponse;
39
+
}
40
+
}
41
+
```
42
+

43
+
44
+
### Toolbar positioning
45
+
46
+
You can use the `ToolbarPosition` property to customize footer toolbar position. It has two modes such as `Inline`, and `Bottom`. By default, the ToolbarPosition is `Inline`.
47
+
48
+
By setting ToolbarPosition as `Bottom`, footer items will be rendered at the bottom with a dedicated footer area .
private List<AssistViewPrompt> prompts = new List<AssistViewPrompt>()
66
+
{
67
+
new AssistViewPrompt() { Prompt = "What is AI?", Response = "<div>AI stands for Artificial Intelligence, enabling machines to mimic human intelligence for tasks such as learning, problem-solving, and decision-making.</div>" }
var defaultResponse = "For real-time prompt processing, connect the AI AssistView component to your preferred AI service, such as OpenAI or Azure Cognitive Services. Ensure you obtain the necessary API credentials to authenticate and enable seamless integration.";

90
+
91
+
### Adding custom items
92
+
93
+
You can use the `AssistViewFooterToolbarItem` tag directive within the `AssistViewFooterToolbar` to add custom items for the footer toolbar in the AI AssistView.
94
+
95
+
> To know more about the items, please refer to the [Items](./toolbar-items#items) section.
private List<AssistViewPrompt> prompts = new List<AssistViewPrompt>()
112
+
{
113
+
new AssistViewPrompt() { Prompt = "What is AI?", Response = "<div>AI stands for Artificial Intelligence, enabling machines to mimic human intelligence for tasks such as learning, problem-solving, and decision-making.</div>" }
var defaultResponse = "For real-time prompt processing, connect the AI AssistView component to your preferred AI service, such as OpenAI or Azure Cognitive Services. Ensure you obtain the necessary API credentials to authenticate and enable seamless integration.";
119
+
args.Response = defaultResponse;
120
+
}
121
+
}
122
+
123
+
```
124
+
125
+

126
+
127
+
### Item click
128
+
The [ItemClick](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.PromptToolbar.html#Syncfusion_Blazor_InteractiveChat_PromptToolbar_ItemClick) event is triggered when the footer toolbar item is clicked.
private List<AssistViewPrompt> prompts = new List<AssistViewPrompt>()
147
+
{
148
+
new AssistViewPrompt() { Prompt = "What is AI?", Response = "<div>AI stands for Artificial Intelligence, enabling machines to mimic human intelligence for tasks such as learning, problem-solving, and decision-making.</div>" }
var defaultResponse = "For real-time prompt processing, connect the AI AssistView component to your preferred AI service, such as OpenAI or Azure Cognitive Services. Ensure you obtain the necessary API credentials to authenticate and enable seamless integration.";
154
+
args.Response = defaultResponse;
155
+
}
156
+
}
157
+
158
+
```
13
159
14
160
## Adding header toolbar items
15
161
16
-
The AI AssistView component allows you to add header toolbar items using the [AssistViewToolbarItem](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.AssistViewToolbarItem.html) tag directive within the [AssistViewToolbar](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.AssistViewToolbar.html).
162
+
The AI AssistView component allows you to add header toolbar items using the `AssistViewToolbarItem` tag directive within the `AssistViewToolbar`.
Copy file name to clipboardExpand all lines: blazor/blockeditor/built-in-blocks/embed.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,9 @@ You can render an `Image` block by setting the `BlockType` property to `Image` i
21
21
22
22
#### Global Image Settings
23
23
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.
25
25
26
-
The `ImageBlockSettings` property supports the following options:
26
+
The `BlockEditorImageBlock` tag directive supports the following options:
| TriggerChar | Specifies the character that opens the label suggestions popup. |
86
+
| Items | Specifies the label items. |
93
87
94
-
### Trigger Character configuration
88
+
####Trigger Character configuration
95
89
96
90
Use the `TriggerChar` property to define the character that opens the label suggestions popup. The default trigger character is `$`.
97
91
98
-
### Label items configuration
92
+
####Label items configuration
99
93
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.
101
95
102
96
Each item supports the following properties:
103
97
@@ -112,7 +106,24 @@ Each item supports the following properties:
112
106
113
107
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.
114
108
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`.
0 commit comments