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

PrefixOptions.icon

configuration

Defines the name for an existing icon in a Kendo UI theme or SVG content.

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.

prefixOptions.icon

String|Object
<input id="autocomplete" />
<script>
  $("#autocomplete").kendoAutoComplete({
    dataSource: [
        { id: 1, name: "Apples" },
        { id: 2, name: "Oranges" }
      ],
    dataTextField: "name",
    prefixOptions: {
      icon: "search"
    }
  })
</script>

The name of the SVG icon.

<input id="autocomplete" />
<script>
  $("#autocomplete").kendoAutoComplete({
    dataSource: [
        { id: 1, name: "Apples" },
        { id: 2, name: "Oranges" }
      ],
    dataTextField: "name",
    prefixOptions: {
      icon: {
          name: "search"
      }
    }
  })
</script>

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

<input id="autocomplete" />
<script>
  $("#autocomplete").kendoAutoComplete({
    dataSource: [
        { id: 1, name: "Apples" },
        { id: 2, name: "Oranges" }
      ],
    dataTextField: "name",
    prefixOptions: {
      icon: {
          name: "search",
          variant: "outline"
      }
    }
  })
</script>