ngx-modialog
Version:
Modal / Dialog for Angular
34 lines (33 loc) • 1.43 kB
TypeScript
import { FluentAssignMethod } from '../framework/fluent-assign';
import { ModalComponent, WideVCRef } from './tokens';
import { Modal } from '../providers/index';
import { DialogRef } from './dialog-ref';
import { ModalContext, ModalContextBuilder } from './modal-context';
import { ModalControllingContextBuilder } from './overlay-context';
export declare class ModalOpenContext extends ModalContext {
component: any;
modal: Modal;
}
/**
* A Modal Context that knows about the modal service, and so can open a modal window on demand.
* Use the fluent API to configure the preset and then invoke the 'open' method to open a modal
* based on the context.
*/
export declare abstract class ModalOpenContextBuilder<T extends ModalOpenContext> extends ModalContextBuilder<T> implements ModalControllingContextBuilder<T> {
/**
* A Class for the footer container.
* Default: modal-footer
*/
component: FluentAssignMethod<ModalComponent<T>, this>;
constructor(defaultValues?: T, initialSetters?: string[], baseType?: new () => T);
/**
* Hook to alter config and return bindings.
* @param config
*/
protected $$beforeOpen(config: T): void;
/**
* Open a modal window based on the configuration of this config instance.
* @param viewContainer If set opens the modal inside the supplied viewContainer
*/
open(viewContainer?: WideVCRef): DialogRef<T>;
}