File

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

Index

Properties

Properties

defaultValue
defaultValue: string
Type : string
Optional
label
label: string
Type : string
placeholder
placeholder: string
Type : string
Optional
template
template: TemplateRef<any>
Type : TemplateRef<any>
Optional
validators
validators: literal type
Type : literal type
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 ""