Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

axAreaHelper: provide an unregister method #439

Open
jpommerening opened this issue Mar 28, 2017 · 0 comments
Open

axAreaHelper: provide an unregister method #439

jpommerening opened this issue Mar 28, 2017 · 0 comments

Comments

@jpommerening
Copy link
Member

jpommerening commented Mar 28, 2017

The unregister() method would be used by an adapter to unregister disappearing widget areas before they are destroyed. For example, if they are nested in a v-if/ng-if.
The area helper could then move the widgets from the area into an off-screen element, maybe triggering visibility events before the technology adapter destroys the DOM node associated with the area.
Once the adapter decides to register another element with the same name the area helper could just add the hidden elements to the area. These hidden elements need to be released as soon as the "owner" of the axAreaHelper is destroyed (either the page, or the widget(-adapter) that received the axAreaHelper as an injection).

@jpommerening jpommerening added this to the v2.1.0 milestone Mar 28, 2017
@x1B x1B removed this from the v2.1.0 milestone Nov 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants