File

projects/rebirth-ng/src/lib/dialog/dialog-options.model.ts

Index

Properties

Properties

animation
animation: boolean
Type : boolean
Optional
backdrop
backdrop: boolean
Type : boolean
Optional
backdropClass
backdropClass: string
Type : string
Optional
componentFactoryResolver
componentFactoryResolver: ComponentFactoryResolver
Type : ComponentFactoryResolver
Optional
content
content: string | SafeHtml | PromptContent
Type : string | SafeHtml | PromptContent
cssClass
cssClass: string
Type : string
Optional
html
html: boolean
Type : boolean
Optional
icon
icon: string
Type : string
Optional
injector
injector: Injector
Type : Injector
Optional
keyboard
keyboard: boolean
Type : boolean
Optional
modal
modal: boolean
Type : boolean
Optional
no
no: string
Type : string
Optional
rootContainer
rootContainer: ViewContainerRef
Type : ViewContainerRef
Optional
title
title: string
Type : string
yes
yes: string
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;
}

results matching ""

    No results matching ""