A namespace which contains APIs Modular UI components.
Example
webViewerInstance.UI.Components.someComponent webViewerInstance.UI.Components.someAPI()
Classes
- CustomButton
- Flyout
- GroupedItems
- Item
- MainMenu
- ModularHeader
- PageControls
- Panel
- PresetButton
- RibbonGroup
- RibbonItem
- StatefulButton
- TabPanel
- ToggleElementButton
- ToolButton
- ViewControls
- Zoom
Type Definitions
-
ContainerProperties
-
Type:
- Object
Properties:
Name Type Argument Description labelstring <optional>
The label of the container. dataElementstring <optional>
The data element of the container. placement'top' | 'bottom' | 'left' | 'right' <optional>
A string that determines the placement of the header. justifyContent'start' | 'end' | 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly' <optional>
A string that determines the flex justify content value of the container. grownumber <optional>
The flex grow value of the container. gapnumber <optional>
The gap between the items in the container. position'start' | 'center' | 'end' <optional>
A string that determines the position of the container. itemsArray.<Object> <optional>
The items or other containers within the container. styleObject <optional>
An object that can set the CSS style of the container. -
FlyoutItem
-
Represents an item in a flyout with optional submenu.
Type:
- Object
Properties:
Name Type Argument Description dataElementstring <optional>
A unique string that identifies the flyout item. labelstring <optional>
The label of the flyout item. onClickfunction <optional>
A function that is called when the item is clicked. iconstring <optional>
Path to an image or base64 data. Can also be the filename of a .svg from the WebViewer icons folder found here: assets/icons/ (i.e. `icon-save` to use `icon-save.svg`). childrenArray.<FlyoutItem> <optional>
An array of objects that represents the items in a sub-menu, has the same properties as the parent items property and can be infinitely nested. -
ItemProperties
-
Item options
Type:
- Object
Properties:
Name Type Argument Description dataElementstring <optional>
The data element of the item. titlestring <optional>
The tooltip of the item. disabledboolean <optional>
Whether the item is disabled or not. typestring <optional>
The type of the item. -
ItemType
-
Description of allowable item types.
Type:
- 'modularHeader' | 'customButton' | 'statefulButton' | 'groupedItems' | 'ribbonItem' | 'divider' | 'toggleButton' | 'ribbonGroup' | 'toolButton' | 'zoom' | 'flyout' | 'pageControls' | 'presetButton' | 'viewControls' | 'menu' | 'tabPanel'
-
TabPanelItemProperties
-
Type:
- Object
Properties:
Name Type Argument Description dataElementstring <optional>
Unique dataElement name for the panel. iconstring <optional>
Path to an image or base64 data. Can also be the filename of a .svg from the WebViewer icons folder found here: assets/icons/ (i.e. `icon-save` to use `icon-save.svg`). labelstring <optional>
The label to be displayed for the panel in the Tab Panel. renderfunction | string The function that renders the panel or the name of the preset panel. -
TabPanelProperties
-
Type:
- Object
Properties:
Name Type Argument Description dataElementstring Unique dataElement name for the tab panel. panelsListArray.<TabPanelItemProperties> The list of panels to be displayed in the tab panel. locationstring <optional>
The location of the panel. It can be either 'left' or 'right'