Initializes a new instance of the ObservableCollection class.
The optional name of the region adapter.
The {@link geocortex.framework.application.Application} that this PopupModalRegionAdapter belongs to.
The active view currently being displayed.
The stack of active views.
The {@link geocortex.framework.application.Application} that this region adapter belongs to.
Content container outer element.
Content container inner DOM element.
Window header DOM element.
Window title DOM element.
Default time that views should take in transitioning from different states (active~inactive).
The DOM element that this adapter works against.
Whether or not this region has one or more active views.
The name of this region adapter. Must be globally unique.
A key value-pair collection of configured options, specific to the particular region adapter.
Modal overlay element.
The view that owns this region, if it's associated with one.
Token used to unsubscribe binding to the active view title.
Any views hosted in this region.
Activates the region, displaying the modal overlay and any modal content.
Activates a view and pushes it to the top of the active views, activating the region if required.
The view to activate.
Because the adding of the "active" class is asynchronous (through setTimeout(0)), there can be a potential race condition whereby if a view is immediately deactivated after getting activated, it may actually get the "activated" class added to it after it has been deactivated. To prevent this from happening, this method should be called when deactivating or simply hiding a view.
Deactivates the region, hiding the modal overlay and any modal content.
Deactivates the active view.
Deactivates a view.
The view to deactivate. The view should pre-exist in the region.
Handles a scroll event on the window, which sets a timer to reposition the content.
Hides all views hosted in the region.
Attaches the region adapter to a DOM element.
The DOM element to adapt for.
Adds a view to this region. This region adapter actually hosts its content in one of the children of the actual region. This allows it to provide some container markup and an "X" button that will deactivate the current view.
The view to host.
Centers the modal content.
Displays the active view, activating the modal popup and overlay if they are not already active.
The active view to show.
Called when the region adapter is to be removed from the user interface.
Removes a view from this region.
The view to remove.
A singleton modal region adapter that pops up when a view belonging to it is activated. An overlay element is used to fade the elements underneath the popup and to prevent user interaction with the app until the modal popup is dismissed.