<kendo:pdfViewer-toolbar-item>
The following list indicates the default tools: pager; zoomInOut; zoom; toggleSelection; search; open; download or print. For DPL Processing exportAs tool could be configured to export a single page to .png or .svg.
Example
<kendo:pdfViewer-toolbar-items>
<kendo:pdfViewer-toolbar-item></kendo:pdfViewer-toolbar-item>
</kendo:pdfViewer-toolbar-items>
Configuration Attributes
attributes java.lang.Object
Specifies the HTML attributes of a ToolBar button.
Example
<kendo:pdfViewer-toolbar-item attributes="attributes">
</kendo:pdfViewer-toolbar-item>
click java.lang.String
Specifies the click event handler of the button.
Example
<kendo:pdfViewer-toolbar-item click="click">
</kendo:pdfViewer-toolbar-item>
command java.lang.String
Default commands in the PDF Viewer are: OpenCommand; PageChangeCommand; DownloadCommand; EnableSelectionCommand; EnablePanCommand; ExportCommand; PrintCommand; OpenSearchCommand or ZoomCommand.
Example
<kendo:pdfViewer-toolbar-item command="command">
</kendo:pdfViewer-toolbar-item>
enable boolean
Specifies whether the control is initially enabled or disabled. Default value is "true".
Example
<kendo:pdfViewer-toolbar-item enable="enable">
</kendo:pdfViewer-toolbar-item>
hidden boolean
Determines if a button is visible or hidden. By default buttons are visible.
Example
<kendo:pdfViewer-toolbar-item hidden="hidden">
</kendo:pdfViewer-toolbar-item>
icon java.lang.String
Sets icon for the item. The icon should be one of the existing in the Kendo UI theme sprite.
Example
<kendo:pdfViewer-toolbar-item icon="icon">
</kendo:pdfViewer-toolbar-item>
id java.lang.String
Specifies the ID of the button.
Example
<kendo:pdfViewer-toolbar-item id="id">
</kendo:pdfViewer-toolbar-item>
imageUrl java.lang.String
If set, the ToolBar will render an image with the specified URL in the button.
Example
<kendo:pdfViewer-toolbar-item imageUrl="imageUrl">
</kendo:pdfViewer-toolbar-item>
name java.lang.String
Specifies the tool's name. Tool definition will be taken from the default collection - kendo.pdfviewer.DefaultTools
Example
<kendo:pdfViewer-toolbar-item name="name">
</kendo:pdfViewer-toolbar-item>
overflow java.lang.String
Example
<kendo:pdfViewer-toolbar-item overflow="overflow">
</kendo:pdfViewer-toolbar-item>
primary boolean
Specifies whether the button is primary. Primary buttons receive different styling.
Example
<kendo:pdfViewer-toolbar-item primary="primary">
</kendo:pdfViewer-toolbar-item>
showIcon java.lang.String
Specifies where the button icon will be displayed. Possible values are: "toolbar", "overflow" or "both" (default).
Example
<kendo:pdfViewer-toolbar-item showIcon="showIcon">
</kendo:pdfViewer-toolbar-item>
showText java.lang.String
Specifies where the text will be displayed. Possible values are: "toolbar", "overflow" or "both" (default).
Example
<kendo:pdfViewer-toolbar-item showText="showText">
</kendo:pdfViewer-toolbar-item>
spriteCssClass java.lang.String
Defines a CSS class (or multiple classes separated by spaces) which will be used for button icon.
Example
<kendo:pdfViewer-toolbar-item spriteCssClass="spriteCssClass">
</kendo:pdfViewer-toolbar-item>
template java.lang.String
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
Example
<kendo:pdfViewer-toolbar-item template="template">
</kendo:pdfViewer-toolbar-item>
text java.lang.String
Sets the text of the button.
Example
<kendo:pdfViewer-toolbar-item text="text">
</kendo:pdfViewer-toolbar-item>
togglable boolean
Specifies if the button is togglable, e.g. has a selected and unselected state.
Example
<kendo:pdfViewer-toolbar-item togglable="togglable">
</kendo:pdfViewer-toolbar-item>
toggle java.lang.String
Specifies the toggle event handler of the button. Applicable only for commands of type button and togglable: true.
Example
<kendo:pdfViewer-toolbar-item toggle="toggle">
</kendo:pdfViewer-toolbar-item>
type java.lang.String
Example
<kendo:pdfViewer-toolbar-item type="type">
</kendo:pdfViewer-toolbar-item>
Event Attributes
click String
Specifies the click event handler of the button.
Example
<kendo:pdfViewer-toolbar-item click="handle_click">
</kendo:pdfViewer-toolbar-item>
<script>
function handle_click(e) {
// Code to handle the click event.
}
</script>
toggle String
Specifies the toggle event handler of the button. Applicable only for commands of type button and togglable: true.
Example
<kendo:pdfViewer-toolbar-item toggle="handle_toggle">
</kendo:pdfViewer-toolbar-item>
<script>
function handle_toggle(e) {
// Code to handle the toggle event.
}
</script>
template String
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
Example
<kendo:pdfViewer-toolbar-item template="handle_template">
</kendo:pdfViewer-toolbar-item>
<script>
function handle_template(e) {
// Code to handle the template event.
}
</script>
Event Tags
kendo:pdfViewer-toolbar-item-click
Specifies the click event handler of the button.
Example
<kendo:pdfViewer-toolbar-item>
<kendo:pdfViewer-toolbar-item-click>
<script>
function(e) {
// Code to handle the click event.
}
</script>
</kendo:pdfViewer-toolbar-item-click>
</kendo:pdfViewer-toolbar-item>
kendo:pdfViewer-toolbar-item-toggle
Specifies the toggle event handler of the button. Applicable only for commands of type button and togglable: true.
Example
<kendo:pdfViewer-toolbar-item>
<kendo:pdfViewer-toolbar-item-toggle>
<script>
function(e) {
// Code to handle the toggle event.
}
</script>
</kendo:pdfViewer-toolbar-item-toggle>
</kendo:pdfViewer-toolbar-item>
kendo:pdfViewer-toolbar-item-template
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
Example
<kendo:pdfViewer-toolbar-item>
<kendo:pdfViewer-toolbar-item-template>
<script>
function(e) {
// Code to handle the template event.
}
</script>
</kendo:pdfViewer-toolbar-item-template>
</kendo:pdfViewer-toolbar-item>