Toolbar template

2 posts, 0 answers
  1. Fabio Masini
    Fabio Masini avatar
    7 posts
    Member since:
    Oct 2005

    Posted 17 Sep 2019 Link to this post

    Hi,

    I've tried to apply a toolbar template, like other components, but it is ignored and it's show the standard toolbar.

    There is just a way to do a toolbar customization, or is it necessary to wait an implementation directly in the component source?

    Thanks

    Fabio

  2. Nencho
    Admin
    Nencho avatar
    1881 posts

    Posted 19 Sep 2019 Link to this post

    Hello Fabio,

    The nested Toolbar of the PDF Viewer (which is actually our Toolbar component) provides a template functionality, only on a tool level. That said, you can customize the tools, in a manner, demonstrated in the last example of the following documentation article:

    https://docs.telerik.com/kendo-ui/controls/PDF/PDFViewer/toolbar

       $("#pdfViewer").kendoPDFViewer({            
            toolbar: {
                items: [
                    "pager", 
                    "spacer", 
                    "open", 
                    "download",
                    {
                    name: "myCustomTool",
                    template: "<select id='myDropdown'></select>"
                    }
                ]
                },
            })
            $("#myDropdown").kendoDropDownList({
                dataSource: ["Option 1", "Option 2", "Option 3"]
            });

    Hope this information helps. Please let me know, should you have any further questions or if you need any specific customization.

    Regards,
    Nencho
    Progress Telerik



Back to Top