ai.aiAssistant.views.initializeComponentsFunction
A function executed when the view is rendered to initialize components.
Example
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [
{ field: "productName" },
{ field: "category" }
],
dataSource: [
{ productName: "Tea", category: "Beverages" },
{ productName: "Coffee", category: "Beverages" }
],
ai: {
aiAssistant: {
views: [
{
type: "custom",
name: "dashboard",
buttonText: "Dashboard",
viewTemplate: "<div id='dashboard-content'></div>",
initializeComponents: function(container) {
container.find("#dashboard-content").html("Dashboard initialized!");
}
}
]
}
}
});
</script>
In this article