scroll-container/src/scroll-container/scroll-container.component.ts
Applies styling for the browser's default scrollbars. Does not affect scrolling behaviour.
import { ScrollContainerComponent } from '@talenra/components/scroll-container';
| changeDetection | ChangeDetectionStrategy.OnPush |
| encapsulation | ViewEncapsulation.None |
| host | { |
| selector | talenra-scroll-container |
| imports |
CdkScrollable
|
| styleUrls | ../../../../../node_modules/simplebar/dist/simplebar.min.css, |
| templateUrl | ./scroll-container.component.html |
Properties |
|
Inputs |
Outputs |
Accessors |
| useOffset |
Type : boolean, unknown
|
Default value : false, { transform: booleanAttribute }
|
|
Determines whether the scrollbar has offset (is shorter than the content). |
| useOverlay |
Type : boolean, unknown
|
Default value : false, { transform: booleanAttribute }
|
|
Developer Preview: Determines whether the scrollbar is placed on top of the scrolling content. |
| updatedScrollYOffset |
Type : boolean
|
|
Triggered whenever the scroll-container's |
| dimensions |
getdimensions()
|
|
Returns dimensions of the scroll container.
Returns :
ScrollContainerDimensions
|
| scrollTop | ||||||
setscrollTop(offset: number)
|
||||||
|
Sets the vertical scroll offset.
Parameters :
Returns :
void
|
| scrollLeft | ||||||
setscrollLeft(offset: number)
|
||||||
|
Sets the horizontal scroll offset.
Parameters :
Returns :
void
|