Class: Panel

UI.Components. Panel


new Panel()

Represents a panel abstraction that can be used to manipulate a panel in the UI
Example
WebViewer(...)
 .then(function(instance) {
 // Returns a list of instances of the panel, each instance can be used to manipulate the panel in the UI using the methods below
 const panelList = instance.UI.getPanels();
 });

Members


dataElement

The data element string for the panel.

location

The location of the panel ('left' or 'right').

Methods


delete()

Deletes the panel from the UI
Example
WebViewer(...)
.then(function(instance) {
const panelList = instance.UI.getPanels();
panelList[0].delete();
});

setLocation(location)

Sets the location of the panel in the UI
Parameters:
Name Type Description
location string The location of the panel, setting this will update the panel in the UI. It can be either 'left' or 'right'
Example
WebViewer(...)
 .then(function(instance) {
 const panelList = instance.UI.getPanels();
 panelList[0].setLocation('right');
 });