Skip to content

ScrollButtonsDirective

directive

Directive that adds left/right scroll buttons around the host element when its content overflows horizontally. The directive restructures the DOM by wrapping the host inside a scroll container with navigation buttons.

Example :

<mat-chip-grid yuvScrollButtons>...</mat-chip-grid>

Example :

<div yuvScrollButtons [yuvScrollButtonsAmount]="200">...</div>

Selector: [yuvScrollButtons]

Standalone: No

Type: any

Default Value: DEFAULT_SCROLL_AMOUNT

How many pixels to scroll per button click.