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

Toolbar.items.icon

configuration

Sets icon for the item. The icon should be one of the existing in the Kendo UI theme sprite.

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.

toolbar.items.icon

String|Object
<div id="pdfviewer"></div>
<script type="module">
$("#pdfviewer").kendoPDFViewer({
    toolbar: {
        items: [
            {
                type: "button",
                text: "Print",
                icon: "print"
            },
            "pager"
        ]
    },
    pdfjsProcessing: {
        file: {
            url: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
        }
    }
});
</script>

The name of the SVG icon.

<div id="pdfviewer"></div>
<script type="module">
$("#pdfviewer").kendoPDFViewer({
    toolbar: {
        items: [
            {
                type: "button",
                text: "Print",
                icon: {
                    name: "print"
                }
            },
            "pager"
        ]
    },
    pdfjsProcessing: {
        file: {
            url: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
        }
    }
});
</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="pdfviewer"></div>
<script type="module">
$("#pdfviewer").kendoPDFViewer({
    toolbar: {
        items: [
            {
                type: "button",
                text: "Print",
                icon: {
                    name: "print",
                    variant: "outline"
                }
            },
            "pager"
        ]
    },
    pdfjsProcessing: {
        file: {
            url: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
        }
    }
});
</script>