ui-dialog

Generation

ng g @ngx-kit/collection:ui-dialog [name]

Demo

PreviewSources

Alert dialog

Custom template

Handle submit

Confirm dialog

Prompt dialog

Color

API

[class] UiDialogDemoModule

@NgModule

[class] UiDialogModule

@NgModule

Exports:[ KitOverlayModule, KitModalModule, ]

[class] UiDialogService

@Injectable

Provided in:'root'

Members

SignatureDescription
alert({header = 'Alert', message, template, color = 'default'}: { header?: string; message?: string; template?: TemplateRef<any>; color?: string; }): Observable<void>
confirm({header = 'Confirm', message, template, color = 'default'}: { header?: string; message?: string; template?: TemplateRef<any>; color?: string; }): Observable<boolean>
prompt({header = 'Prompt', template, color = 'default'}: { header?: string; template: TemplateRef<any>; color?: string; }): Observable<T | false>

[class] UiDialogComponent

@Component

Selector:'ui-dialog'

Members

SignatureDescription
@Input() options: UiDialogOptions
result: any
submitHandler()
cancelHandler()