This is a migrated thread and some comments may be shown as answers.

Toolbar template

1 Answer 51 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Fabio Masini
Top achievements
Rank 1
Fabio Masini asked on 17 Sep 2019, 09:38 AM

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

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 19 Sep 2019, 08:16 AM

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



Tags
PDFViewer
Asked by
Fabio Masini
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or