Layout api
NbLayoutComponent
Inputs
| Name | Type | Description |
| center | boolean | Defines whether the layout columns will be centered after some width |
| restoreScrollTop | boolean | Restores scroll to the top of the page after navigation |
| windowMode | boolean | Defines whether the layout enters a 'window' mode, when the layout content (including sidebars and fixed header)
becomes centered by width with a margin from the top of the screen, like a floating window.
Automatically enables |
| withScroll | boolean | Defines whether to move the scrollbars to layout or leave it at the body level.
Automatically set to true when |
Methods
| Name | Description |
| getDimensions() | returns: NbLayoutDimensionsReturns scroll and client height/width |
| getScrollPosition() | returns: NbScrollPositionReturns scroll position of current scroll container. |
NbLayoutHeaderComponent
Inputs
| Name | Type | Description |
| fixed | boolean | Makes the header sticky to the top of the nb-layout. |
| subheader | boolean | Places header on a side of the sidebar, and not above. Disables fixed mode for this header and remove a shadow from the sidebar. |
NbLayoutColumnComponent
Inputs
| Name | Type | Description |
| left | boolean | Move the column to the very left position in the layout. |
| start | boolean | Make column first in the layout. |
NbLayoutFooterComponent
Inputs
| Name | Type | Description |
| fixed | boolean | Makes the footer sticky to the bottom of the window. |
Need some help or found an issue?
Ask on Stack Overflow with tag `nebular` or post an issue on GitHub.
