projects/rebirth-ng/src/lib/dialog/dialog-options.model.ts
Properties |
|
animation |
animation:
|
Type : boolean
|
Optional |
backdrop |
backdrop:
|
Type : boolean
|
Optional |
backdropClass |
backdropClass:
|
Type : string
|
Optional |
componentFactoryResolver |
componentFactoryResolver:
|
Type : ComponentFactoryResolver
|
Optional |
content |
content:
|
Type : string | SafeHtml | PromptContent
|
cssClass |
cssClass:
|
Type : string
|
Optional |
html |
html:
|
Type : boolean
|
Optional |
icon |
icon:
|
Type : string
|
Optional |
injector |
injector:
|
Type : Injector
|
Optional |
keyboard |
keyboard:
|
Type : boolean
|
Optional |
modal |
modal:
|
Type : boolean
|
Optional |
no |
no:
|
Type : string
|
Optional |
rootContainer |
rootContainer:
|
Type : ViewContainerRef
|
Optional |
title |
title:
|
Type : string
|
yes |
yes:
|
Type : string
|
Optional |
import { ViewContainerRef, Injector, ComponentFactoryResolver, TemplateRef } from '@angular/core';
import { SafeHtml } from '@angular/platform-browser';
import { ValidatorFn } from '@angular/forms';
export interface PromptContent {
label: string;
defaultValue?: string;
placeholder?: string;
template?: TemplateRef<any>;
validators?: { [key: string]: { validator: ValidatorFn, message: string } };
}
export interface DialogOptions {
title: string;
content: string | SafeHtml | PromptContent;
html?: boolean;
yes?: string;
no?: string;
icon?: string;
cssClass?: string;
backdrop?: boolean;
backdropClass?: string;
keyboard?: boolean;
modal?: boolean;
animation?: boolean;
componentFactoryResolver?: ComponentFactoryResolver;
injector?: Injector;
rootContainer?: ViewContainerRef;
}