Custom Views in EJ2 TypeScript AI AssistView

11 Aug 20261 minute to read

Adding custom views

By using the views property you can define the collection of different assist view models in the AI AssistView. You can customize the default and the custom views added.

Setting view type

You can set the type of view by using the type property. It accepts two values such as Assist, and Custom.

Setting name

You can use the name property to specifies the header name of the Assist or Custom views in the AI AssistView.

Setting iconCss

You can customize the view icons by using the iconCss property. By default the e-assistview-icon class is added as built-in header icon for the AI AssistView.

The following example illustrates how types, name, and iconCss are used in a AI AssistView control.

Setting view template

You can use the viewTemplate property to add the view content of the multiple views added in the AI AssistView.

Setting active view

You can use the activeView property to set the active view in the AI AssistView. By default, the value is 0.