carbon-components-angular
Version:
Next generation components
46 lines (45 loc) • 1.46 kB
TypeScript
import { OnInit, ViewContainerRef } from "@angular/core";
import { PlaceholderService } from "./../placeholder/placeholder.service";
/**
* Deprecated with v2.0, will be removed in v3.0
* Using a modal in your application requires *this* component (`n-modal-placeholder`).
* It would generally be placed near the end of your app component template
* (app.component.ts or app.component.html) as:
*
* ```html
* ...
* <ibm-modal-placeholder></ibm-modal-placeholder>
* ```
*
* A more complete example for `Modal` is given as follows:
*
* ```html
* <ibm-modal size="xl" (overlaySelected)="closeModal()">
* <ibm-modal-header (closeSelect)="closeModal()">Header text</ibm-modal-header>
* <section class="modal-body">
* <h1>It Works!</h1>
* {{modalText}}
* </section>
* <ibm-modal-footer><button class="btn cancel-button" (click)="closeModal()">Cancel</button></ibm-modal-footer>
* </ibm-modal>
* ...
* <ibm-modal-placeholder></ibm-modal-placeholder>
* ```
*
* @deprecated
*/
export declare class ModalPlaceholder implements OnInit {
placeholderService: PlaceholderService;
/**
* Maintains a reference to the view DOM element of the `ModalPlaceholder`.
*/
viewContainerRef: ViewContainerRef;
/**
* Creates an instance of `ModalPlaceholder`.
*/
constructor(placeholderService: PlaceholderService);
/**
* Initializes the component using `ModalService`.
*/
ngOnInit(): void;
}