Class: ViewManager

sync.view.ViewManager

new ViewManager()

Helper object used to control the lateral views. This object contains configuration of the views layout. A view is not visible before a view renderer is installed for it. As of oXygen XML WebApp 17.1, the views are displayed in the east side-panel. The order is the one specified below. In future releases, there might be more layout options. Changes to the default layout should be performed when the plugin code is loaded. Frameworks should not modify the layout - they have several reserved views with ids: 'framework-specific-N' with N from 1 to 9.
Source:

Methods

addView(viewId)

Adds a new view with the given ID. The view is not rendered until a sync.view.ViewRenderer is installed for it.
Parameters:
Name Type Description
viewId string The id of the view to be added.
Source:

focusView(viewId)

Focuses the view with the given ID.
Parameters:
Name Type Description
viewId string The ID of the view to focus.
Source:

getViewIds() → {Array.<string>}

Source:
Returns:
The list of IDs of all views defined in the layout.
Type
Array.<string>

hideAppBar()

Hides the application header bar that contains: - the application logo - some basic actions - when the header is hidden they migrate to the main toolbar. - the file name - the user name
Source:

installView(viewId, view)

Install the view renderer for the view with the given ID. It takes care of rendering the view content.
Parameters:
Name Type Description
viewId string The ID of the view to focus.
view sync.view.ViewRenderer The view handler.
Source:

removeView(viewId)

Removes the given view from the layout.
Parameters:
Name Type Description
viewId string The id of the view to be removed.
Source: