New to Kendo UI for jQuery? Start a free 30-day trial

The icon name of the command item.

Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

<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: "prompt",
          name: "insights",
          promptCommands: [
            {
              id: "insights",
              text: "Generate Insights",
              icon: "lightbulb"
            }
          ]
        }
      ]
    }
  }
});
</script>

The name of the SVG icon.

<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: "prompt",
          name: "insights",
          promptCommands: [
            {
              id: "insights",
              text: "Generate Insights",
              icon: {
                  name: "lightbulb"
              }
            }
          ]
        }
      ]
    }
  }
});
</script>

The SVG icon variant. Supported values are outline, solid, and duotone. The variant applies to SVG rendering and is ignored for font icons.

<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: "prompt",
          name: "insights",
          promptCommands: [
            {
              id: "insights",
              text: "Generate Insights",
              icon: {
                  name: "lightbulb",
                  variant: "outline"
              }
            }
          ]
        }
      ]
    }
  }
});
</script>