getDefaultContainer function

  1. @Injectable()
HtmlElement getDefaultContainer(
  1. @Inject(overlayContainerName) Object name,
  2. @Inject(overlayContainerParent) Object parent,
  3. @Optional() @SkipSelf() @Inject(overlayContainerToken) Object? container
)

Either finds, or creates an "acx-overlay-container" div at the end of body.

Implementation

@Injectable()
HtmlElement getDefaultContainer(
    @Inject(overlayContainerName) Object name,
    @Inject(overlayContainerParent) Object parent,
    @Optional() @SkipSelf() @Inject(overlayContainerToken) Object? container) {
  if (container != null) {
    return container as HtmlElement;
  }

  return createAcxOverlayContainer(parent,
      id: overlayDefaultContainerId, name: name as String);
}