Tableau UI for Angular

Arrow Scroller

An arrow scroller scrolls its content with an arrow button at each end, in place of a scrollbar.

Import

Import TableauUiArrowScrollModule from tableau-ui-angular/arrow-scroll.

Vertical

scrollType="arrow" hides the scrollbar, and shows the arrows while the content overflows; an arrow is disabled once there is nothing more to scroll its way. scrollType="default" keeps the scrollbar and shows no arrows. The arrows are buttons, named Scroll back and Scroll forward for screen readers.

InputWhat it does
scrollTypeRequired. arrow or default
scrollDirectionRequired. vertical or horizontal
[buttonScrollAmount]The pixels an arrow scrolls; 100 by default
buttonsGapThe space between an arrow and the content; 0.25rem by default
buttonsColorThe arrows' button colour: plain, the default, primary, secondary or error
buttonsCssColorA CSS colour for the arrows' icons
backIcon, forwardIcon, [iconParams]Other icons for the arrows, and their parameters, such as fontSize
[showScrollButtonSeparator]A line between each arrow and the content

Line 1 of the content

Line 2 of the content

Line 3 of the content

Line 4 of the content

Line 5 of the content

Line 6 of the content

Line 7 of the content

Line 8 of the content

Line 9 of the content

Line 10 of the content

Line 11 of the content

Line 12 of the content

Line 13 of the content

Line 14 of the content

Line 15 of the content

Line 16 of the content

Line 17 of the content

Line 18 of the content

Line 19 of the content

Line 20 of the content

Line 21 of the content

Line 22 of the content

Line 23 of the content

Line 24 of the content

Line 25 of the content

Line 26 of the content

Line 27 of the content

Line 28 of the content

Line 29 of the content

Line 30 of the content

import { ChangeDetectionStrategy, Component } from '@angular/core';
import { TableauUiArrowScrollModule } from 'tableau-ui-angular/arrow-scroll';

@Component({
  selector: 'app-scroller-vertical-example',
  imports: [TableauUiArrowScrollModule],
  templateUrl: './scroller-vertical.example.html',
  styleUrl: './scroller-vertical.example.scss',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ScrollerVerticalExampleComponent {
  protected readonly lines = Array.from({ length: 30 }, (_, index) => `Line ${index + 1} of the content`);
}

Horizontal

A horizontal scroller also turns the mouse wheel's scroll sideways, whichever its scrollType.

Item 1Item 2Item 3Item 4Item 5Item 6Item 7Item 8Item 9Item 10Item 11Item 12Item 13Item 14Item 15Item 16Item 17Item 18Item 19Item 20Item 21Item 22Item 23Item 24Item 25Item 26Item 27Item 28Item 29Item 30
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { TableauUiArrowScrollModule } from 'tableau-ui-angular/arrow-scroll';

@Component({
  selector: 'app-scroller-horizontal-example',
  imports: [TableauUiArrowScrollModule],
  templateUrl: './scroller-horizontal.example.html',
  styleUrl: './scroller-horizontal.example.scss',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ScrollerHorizontalExampleComponent {
  protected readonly items = Array.from({ length: 30 }, (_, index) => `Item ${index + 1}`);
}