UI Class
Provides access to user interface components and configuration options for the PDF viewer.
export declare class UI
- Inheritance:
-
UI
Remarks
This class contains references to UI elements that can be customized, including theme settings, toolbar configuration, and side panel options.
Fields
theme
Gets or sets the theme for the PDF viewer.
readonly theme?: "light" | "dark" | "red" | "dark-red" | "blue" | "dark-blue" | "green" | "dark-green";
Remarks
Controls the color scheme of the viewer. Predefined theme from Theme can be picked to match your application's color palette. Defaults to "light".
toolbar
Gets the toolbar component of the PDF viewer.
readonly toolbar: ToolbarUI;
Field Value
Remarks
Provides access to toolbar configuration and functionality, including buttons for common actions like opening files, printing, zooming, and navigating through pages.
sidePanel
Gets the side panel component of the PDF viewer.
readonly sidePanel: SidePanelUI;
Field Value
Remarks
Controls the side panel that typically contains additional functionality such as layers, outlines, thumbnails, and other navigation aids.