Dialog api
NbDialogService
Methods
| Name | Description |
| createComponentPortal() | parameters: config: returns:NbDialogConfig, content: Type, dialogRef: NbDialogRefNbComponentPortalWe're creating portal with custom injector provided through config or using global injector.
This approach provides us capability inject |
| open() | parameters: content: returns:, userConfig: PartialNbDialogRef<T>Opens new instance of the dialog, may receive optional config. |
NbDialogRef
Properties
| Name | Type | Description |
| onBackdropClick | Observable<MouseEvent> | Stream of backdrop click events. |
Methods
| Name | Description |
| close() | parameters: res: returns:anyvoidHides dialog. |
NbDialogConfig
Properties
| Name | Type | Description |
| autoFocus | boolean | Focuses dialog automatically after open if true. |
| backdropClass | string | Class that'll be assigned to the backdrop element. |
| closeOnBackdropClick | boolean | If true then mouse clicks by backdrop will close a dialog. |
| closeOnEsc | boolean | If true then escape press will close a dialog. |
| dialogClass | string | Class that'll be assigned to the dialog overlay. |
| hasBackdrop | boolean | If true than overlay will render backdrop under a dialog. |
| hasScroll | boolean | Disables scroll on content under dialog if true and does nothing otherwise. |
| viewContainerRef | ViewContainerRef | Where the attached component should live in Angular's logical component tree. This affects what is available for injection and the change detection order for the component instantiated inside of the dialog. This does not affect where the dialog content will be rendered. |
Need some help or found an issue?
Ask on Stack Overflow with tag `nebular` or post an issue on GitHub.
