DevAtlas Viewport and Customization Engine
  • API Overview
  • Documentation Notes
  • Reserved Features
  • Viewport Engine
    • Loading Windows
      • changeViewport()
      • Loading Customization Engine Plugins
    • Account Functions
      • logInAPI()
  • Customization Engine
    • Viewport Window
      • Viewport Window Definition
      • Viewport Window JS Object
      • Viewport Window JSON
    • Sidebar Icon
    • Announcements
Powered by GitBook
On this page
  1. Viewport Engine

Loading Windows

There are two different ways to load windows into the Viewport Engine.

changeViewport() - This method assumes that the window div has already been loaded into the users computer. You should use this when your plugin is trying to load either an internal window or another window within your plugin. If the code for the referenced window has not been loaded, a 404 error will be returned.

createNewViewportWindowToCache() - This method first downloads the plugin code from the Customization Engine, then carries out the changeViewportForPlugin() function. The difference between the two functions is that the changeViewport() function can only load hardcoded plugins, and this function loads windows from plugins.

PreviousReserved FeaturesNextchangeViewport()

Last updated 3 months ago