Skip to content

ScrollButtonsComponent

component

Wrapper component that adds left/right scroll buttons when its content overflows horizontally. Buttons appear only when there is overflow in the respective direction.

Example :

<yuv-scroll-buttons>
<mat-chip-grid>...</mat-chip-grid>
</yuv-scroll-buttons>

Selector: yuv-scroll-buttons

Standalone: No

Type: any

Default Value: DEFAULT_SCROLL_AMOUNT

How many pixels to scroll per button click.

Type: unknown

Default Value: viewChild.required<ElementRef<HTMLElement>>('scrollContainer')

Type: unknown

Default Value: signal(false)

Type: unknown

Default Value: signal(false)

onScroll(): void
scrollLeft(): void
scrollRight(): void