Modern document applications demand highly customizable interfaces. Whether you’re building a PDF viewer, annotation platform, or document workflow application, the ability to tailor the user experience is essential. WebViewer’s Modular UI introduces a flexible, component-based architecture that makes UI customization easier than ever.
At the heart of the system are two building blocks:
Containers are responsible for organizing the structure of the UI. They can hold items and, in some cases, other containers, enabling complex layouts without modifying source code.
The three primary container types are:
Each serves a different purpose in organizing the user interface.
Modular Headers are the highest-level containers in WebViewer. They act as the main toolbar regions where other components are placed.
Unlike traditional toolbars, Modular Headers can be positioned in multiple locations:
This flexibility allows developers to quickly redesign the application’s layout by simply changing a configuration property.
For example, a tools panel that normally appears at the top can be moved to the left side of the screen without rebuilding the UI.
Modular Headers also support customization options such as:
Developers can either replace the default headers completely or add new headers alongside existing ones.
Grouped Items are lightweight containers used to organize related controls and actions.
Common use cases include:
Grouped Items behave similarly to CSS flexbox containers, making them easy to align and style.
One particularly useful feature is automatic overflow management. When there isn’t enough room to display every item, WebViewer automatically moves excess controls into a “More” menu, keeping the interface clean and responsive.
Grouped Items can also be configured to:
Ribbon Groups enable developers to build interfaces similar to Microsoft Office applications.
A Ribbon Group contains Ribbon Items, which act as tabs. Each tab is associated with one or more Grouped Items containers.
For example:
When a user selects a ribbon tab, the corresponding tool group becomes visible.
This approach keeps large toolsets organized and improves discoverability without overwhelming users with too many controls at once.
Ribbon Groups also support responsive behavior, automatically collapsing into menus or dropdowns when screen space becomes limited.
One of the biggest advantages of Modular UI is that components can be modified at runtime.
Developers can:
This makes it easy to adapt the interface based on user roles, workflows, or application state.
The Modular UI architecture offers several advantages:
Build custom experiences without modifying the core source code.
Items and containers can be reused throughout the application.
API-based customization reduces upgrade complexity and maintenance effort.
Automatic overflow handling ensures a consistent experience across screen sizes.
Move toolbars, create custom ribbons, and reorganize controls with minimal effort.
WebViewer Modular UI provides a powerful, scalable approach to interface customization. By combining Modular Headers, Grouped Items, and Ribbon Groups, developers can create highly tailored document experiences while maintaining a clean and maintainable codebase.
Whether you’re making small adjustments to the default toolbar or building a completely custom document viewer, Modular UI offers the flexibility needed to deliver modern, user-friendly interfaces.