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

ToolIcon

configuration

A CSS class name to display an icon in the color picker button. If specified, the HTML for the element will look like this:

<span class="k-tool-icon ${toolIcon}">
  <span class="k-selected-color"></span>
</span>

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.

toolIcon

String|Object

Default: null

<input id="colorpicker" type="color" />
<script>
$("#colorpicker").kendoColorPicker({
  toolIcon: "k-foreColor"
});
</script>

The name of the SVG icon.

<input id="colorpicker" type="color" />
<script>
$("#colorpicker").kendoColorPicker({
  toolIcon: "k-foreColor"
});
</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="colorpicker" type="color" />
<script>
$("#colorpicker").kendoColorPicker({
  toolIcon: "k-foreColor"
});
</script>