Window api
NbWindowService
Methods
| Name | Description |
| open() | parameters: windowContent: returns:, windowConfig:
NbWindowRefOpens new window. |
NbWindowRef
Properties
| Name | Type | Description |
| onClose | Observable | Emits when window was closed. |
| state | NbWindowState | Current window state. |
| stateChange | Observable | Emits when window state change. |
Methods
| Name | Description |
| close() | returns: voidCloses window. |
| fullScreen() | returns: voidSet window on top. |
| maximize() | returns: voidMaximize window. |
| minimize() | returns: voidMinimize window. |
NbWindowConfig
Properties
| Name | Type | Description |
| buttons | Partial<NbWindowControlButtonsConfig> | Windows control buttons can be hidden by setting according property to false. |
| closeOnBackdropClick | boolean | If set to true mouse clicks on backdrop will close a window. Default is true. |
| closeOnEsc | boolean | If true then escape press will close a window. Default is true. |
| context | Object | Both, template and component may receive data through |
| hasBackdrop | boolean | If true than backdrop will be rendered behind window. By default set to true. |
| initialState | NbWindowState | Initial window state. Full screen by default. |
| title | string | Window title. |
| titleTemplate | TemplateRef<any> | Window title as template. Use it instead of |
| titleTemplateContext | Object | Title as template may receive data through |
| 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 window. This does not affect where the window content will be rendered. |
| windowClass | string | Class to be applied to the window. |
Need some help or found an issue?
Ask on Stack Overflow with tag `nebular` or post an issue on GitHub.
