Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Modal

Index

Constructors

constructor

  • new Modal(componentLoader: DynamicComponentLoader, appRef: ApplicationRef, defaultConfig: ModalConfig): Modal
  • Parameters

    • componentLoader: DynamicComponentLoader
    • appRef: ApplicationRef
    • defaultConfig: ModalConfig

    Returns Modal

Properties

Private appRef

appRef: ApplicationRef

Private componentLoader

componentLoader: DynamicComponentLoader

Methods

Private createBackdrop

  • createBackdrop(elementRef: ElementRef, bindings: ResolvedProvider[], anchorName?: string): Promise<ComponentRef>
  • Creates backdrop element.

    Parameters

    • elementRef: ElementRef

      The element to block using the modal.

    • bindings: ResolvedProvider[]

      Resolved providers (Must contain the ModalDialogInstance instance for this backdrop.

    • Optional anchorName: string

      An anchor name, optional, if not supplied backdrop gets applied next to elementRef, otherwise into it.

    Returns Promise<ComponentRef>

open

  • Opens a modal window blocking the whole screen.

    Parameters

    • componentType: FunctionConstructor

      The angular Component to render as modal.

    • bindings: ResolvedProvider[]

      Resolved providers that will inject into the component provided.

    • Optional config: ModalConfig

      A Modal Configuration object.

    Returns Promise<ModalDialogInstance>

openInside

  • openInside(componentType: FunctionConstructor, elementRef: ElementRef, anchorName: string, bindings: ResolvedProvider[], config?: ModalConfig): Promise<ModalDialogInstance>
  • Opens a modal window inside an existing component.

    Parameters

    • componentType: FunctionConstructor

      The angular Component to render as modal.

    • elementRef: ElementRef

      The element to block using the modal.

    • anchorName: string

      A template variable within the component.

    • bindings: ResolvedProvider[]

      Resolved providers that will inject into the component provided.

    • Optional config: ModalConfig

      A Modal Configuration object.

    Returns Promise<ModalDialogInstance>

Generated using TypeDoc