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

Toolbar.overflow

configuration

Specifies Toolbar.overflow configuration for the toolbar.

<div id="pdfviewer"></div>
<script type="module">
$("#pdfviewer").kendoPDFViewer({
    toolbar: {
        overflow: {
            mode: "scroll",
            scrollButtons: "visible"
        }
    },
    pdfjsProcessing: {
        file: {
            url: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
        }
    }
});
</script>

Defines the overflow mode. The available options are:

  • "menu" — Moves overflowing items into a dropdown menu.
  • "scroll" — Keeps items visible and enables horizontal scrolling.
  • "section" — Groups items into collapsible sections.
  • "none" — Disables overflow handling; items may be cut off.

Default: "menu"

<div id="pdfviewer"></div>
<script type="module">
$("#pdfviewer").kendoPDFViewer({
    toolbar: {
        overflow: {
            mode: "scroll"
        }
    },
    pdfjsProcessing: {
        file: {
            url: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
        }
    }
});
</script>

Defines the visibility of scroll buttons when mode is "scroll". The available options are:

  • "auto" — Displays scroll buttons only when needed.
  • "hidden" — Hides the scroll buttons at all times.
  • "visible" — Always shows the scroll buttons.

Default: "auto"

<div id="pdfviewer"></div>
<script type="module">
$("#pdfviewer").kendoPDFViewer({
    toolbar: {
        overflow: {
            mode: "scroll",
            scrollButtons: "visible"
        }
    },
    pdfjsProcessing: {
        file: {
            url: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
        }
    }
});
</script>

Defines the placement of scroll buttons. The available options are:

  • "split" — Scroll buttons appear at both ends of the toolbar.
  • "start" — Scroll buttons appear only at the start of the toolbar.
  • "end" — Scroll buttons appear only at the end of the toolbar.

Default: "split"

<div id="pdfviewer"></div>
<script type="module">
$("#pdfviewer").kendoPDFViewer({
    toolbar: {
        overflow: {
            mode: "scroll",
            scrollButtonsPosition: "end"
        }
    },
    pdfjsProcessing: {
        file: {
            url: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
        }
    }
});
</script>

Specifies the distance (in pixels) the toolbar scrolls when a scroll button is clicked.

Default: 50

<div id="pdfviewer"></div>
<script type="module">
$("#pdfviewer").kendoPDFViewer({
    toolbar: {
        overflow: {
            mode: "scroll",
            scrollDistance: 100
        }
    },
    pdfjsProcessing: {
        file: {
            url: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
        }
    }
});
</script>