NbLayoutRulerService
Simple helper service to return Layout dimensions
Depending of current Layout scroll mode (default or withScroll
when scroll is moved to an element
inside of the layout) corresponding dimensions will be returns - of documentElement
in first case and
.scrollable-container
in the second.
Methods
Name | Description |
getDimensions() | returns: Observable<NbLayoutDimensions> Content dimensions |
NbLayoutDimensions
Layout dimensions type
Properties
Name | Type | Description |
clientHeight | number | clientHeight |
clientWidth | number | clientWidth |
scrollHeight | number | scrollHeight |
scrollWidth | number | scrollWidth |
Previous page
Introduction
Next page
Need some help or found an issue?
Ask on Stack Overflow with tag `nebular` or post an issue on GitHub.