@skyux/modals
Version:
This library was generated with [Nx](https://nx.dev).
37 lines (36 loc) • 1.53 kB
TypeScript
import { SkyDynamicComponentLegacyService, SkyDynamicComponentService } from '@skyux/core';
import { SkyModalInstance } from './modal-instance';
import { SkyModalServiceInterface } from './modal-service-interface';
import { SkyModalConfigurationInterface } from './modal.interface';
import * as i0 from "@angular/core";
/**
* A service that launches modals.
*/
export declare class SkyModalService implements SkyModalServiceInterface {
#private;
private static host;
constructor(dynamicComponentService: SkyDynamicComponentService);
/**
* @internal
* Removes the modal host from the DOM.
*/
dispose(): void;
/**
* Opens a modal using the specified component.
* @param component Determines the component to render.
* @param {SkyModalConfigurationInterface} config Specifies configuration options for the modal.
*/
open(component: any, config?: SkyModalConfigurationInterface | any[]): SkyModalInstance;
static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<SkyModalService>;
}
/**
* A service that launches modals.
* @internal
* @deprecated Use `SkyModalService` to open a standalone component instead.
*/
export declare class SkyModalLegacyService extends SkyModalService {
constructor(dynamicComponentSvc: SkyDynamicComponentLegacyService);
static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalLegacyService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<SkyModalLegacyService>;
}