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: ej2-javascript/ai-assistview/toolbar-items.md
+136-6Lines changed: 136 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,137 @@ domainurl: ##DomainURL##
11
11
12
12
# Toolbar items in ##Platform_Name## AI AssistView control
13
13
14
-
You can render the AI AssistView toolbar items by using the `items` property in the [toolbarSettings](../api/ai-assistview#toolbarsettings), [responseToolbarSettings](../api/ai-assistview#responsetoolbarsettings) & [promptToolbarSettings](../api/ai-assistview#prompttoolbarsettings) properties.
14
+
You can render the AI AssistView toolbar items by using the `items` property in the [toolbarSettings](../api/ai-assistview#toolbarsettings), [responseToolbarSettings](../api/ai-assistview#responsetoolbarsettings), [promptToolbarSettings](../api/ai-assistview#prompttoolbarsettings) & [footerToolbarSettings](../api/ai-assistview#footertoolbarsettings) properties.
15
+
16
+
## Configure footer toolbar
17
+
18
+
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.
19
+
20
+
In the following example, AI AssistView component rendered with footer toolbar items such as `send` and `attachment` icons.
21
+
22
+
{% if page.publishingplatform == "typescript" %}
23
+
24
+
{% tabs %}
25
+
{% highlight ts tabtitle="index.ts" %}
26
+
{% include code-snippet/ai-assistview/file-attachments/enable-attachment/index.ts %}
27
+
{% endhighlight %}
28
+
{% highlight html tabtitle="index.html" %}
29
+
{% include code-snippet/ai-assistview/file-attachments/enable-attachment/index.html %}
You can use the [toolbarPosition](../api/ai-assistview/footerToolbarSettingsModel#toolbarPosition) property to customize footer toolbar position. It has two modes such as `Inline`, and `Bottom`. By default, the toolbarPosition is `Inline`.
52
+
53
+
By settings toolbarPosition as `Bottom`, footer items will be rendered at the bottom with a dedicated footer area.
54
+
55
+
{% if page.publishingplatform == "typescript" %}
56
+
57
+
{% tabs %}
58
+
{% highlight ts tabtitle="index.ts" %}
59
+
{% include code-snippet/ai-assistview/toolbar-items/footer-position/index.ts %}
60
+
{% endhighlight %}
61
+
{% highlight html tabtitle="index.html" %}
62
+
{% include code-snippet/ai-assistview/toolbar-items/footer-position/index.html %}
You can use the [footerToolbarSettings](../api/ai-assistview#footertoolbarsettings) property to add custom items for the footer toolbar in the AI AssistView. The custom items will be added with the existing built-in items in the footer toolbar.
85
+
86
+
> To know more about the items, please refer to the [items](#items) section.
87
+
88
+
{% if page.publishingplatform == "typescript" %}
89
+
90
+
{% tabs %}
91
+
{% highlight ts tabtitle="index.ts" %}
92
+
{% include code-snippet/ai-assistview/toolbar-items/footer-settings/index.ts %}
93
+
{% endhighlight %}
94
+
{% highlight html tabtitle="index.html" %}
95
+
{% include code-snippet/ai-assistview/toolbar-items/footer-settings/index.html %}
@@ -410,11 +540,11 @@ In the following example, AI AssistView control rendered with built-in toolbar i
410
540
411
541
#### Setting width
412
542
413
-
You can use the [width](../api/ai-assistview/promptToolbarSettingsModel/#width) property to set the width of the prompt toolbar in the AI AssistView.
543
+
You can use the [width](../api/ai-assistview/promptToolbarSettingsModel#width) property to set the width of the prompt toolbar in the AI AssistView.
414
544
415
545
#### Item clicked
416
546
417
-
The [itemClicked](../api/ai-assistview/promptToolbarSettingsModel/#itemclicked) event is triggered when the prompt toolbar item is clicked.
547
+
The [itemClicked](../api/ai-assistview/promptToolbarSettingsModel#itemclicked) event is triggered when the prompt toolbar item is clicked.
418
548
419
549
{% if page.publishingplatform == "typescript" %}
420
550
@@ -478,11 +608,11 @@ In the following example, AI AssistView renders with built-in toolbar items.
478
608
479
609
#### Setting width
480
610
481
-
You can use the [width](../api/ai-assistview/responseToolbarSettingsModel/#width) property to set the width of the response toolbar in the AI AssistView.
611
+
You can use the [width](../api/ai-assistview/responseToolbarSettingsModel#width) property to set the width of the response toolbar in the AI AssistView.
482
612
483
613
#### Item clicked
484
614
485
-
The [itemClicked](../api/ai-assistview/responseToolbarSettingsModel/#itemclicked) event is triggered when the response toolbar item is clicked.
615
+
The [itemClicked](../api/ai-assistview/responseToolbarSettingsModel#itemclicked) event is triggered when the response toolbar item is clicked.
486
616
487
617
{% if page.publishingplatform == "typescript" %}
488
618
@@ -583,4 +713,4 @@ You can use the [responseToolbarSettings](../api/ai-assistview#responsetoolbarse
583
713
584
714
#### Item clicked
585
715
586
-
The [itemClicked](../api/ai-assistview/promptToolbarSettingsModel/#itemclicked) event is triggered when a custom toolbar item is clicked. This event applies to both prompt and response toolbar items.
716
+
The [itemClicked](../api/ai-assistview/promptToolbarSettingsModel#itemclicked) event is triggered when a custom toolbar item is clicked. This event applies to both prompt and response toolbar items.
The axis label template allows you to customize axis labels by formatting them with HTML content, applying conditional styling, and including dynamic elements such as icons, images or additional data. This customization is enabled by setting the template content in the [labelTemplate](https://ej2.syncfusion.com/documentation/api/chart/axismodel#labelTemplate) property of the `AxisModel`.
491
+
492
+
{% if page.publishingplatform == "typescript" %}
493
+
494
+
{% tabs %}
495
+
{% highlight ts tabtitle="index.ts" %}
496
+
{% include code-snippet/chart/axis-cs99/index.ts %}
497
+
{% endhighlight %}
498
+
{% highlight html tabtitle="index.html" %}
499
+
{% include code-snippet/chart/axis-cs99/index.html %}
response: `<div>AI stands for Artificial Intelligence, enabling machines to mimic human intelligence for tasks such as learning, problem-solving, and decision-making.</div>`
vardefaultResponse='For real-time prompt processing, connect the AIAssistView 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.';
response: `<div>AI stands for Artificial Intelligence, enabling machines to mimic human intelligence for tasks such as learning, problem-solving, and decision-making.</div>`
letdefaultResponse='For real-time prompt processing, connect the AIAssistView 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.';
0 commit comments