To switch the widget to a right-to-left representation, just enable a single property - "rtl". When this property is on, the horizontal scrollbar is mirrored.
Loading...

Angular ScrollBar: Right to Left Layout

The right to left support in Angular ScrollBar.

A live Angular example of jqxScrollBar, the jQWidgets ScrollBar component, with its complete source code below. It is one of 2 jqxScrollBar demos for Angular.

jqxScrollBar API used in this demo

Source code

To run it in your own app, install the package with npm install jqwidgets-ng, add these files to a standalone Angular CLI app, and add jqx.base.css and a theme to the styles in angular.json. Getting started with jqxScrollBar shows the setup step by step.

app.ts

import { Component, ElementRef, viewChild } from '@angular/core';
import { CommonModule } from '@angular/common';
import { jqxScrollBarModule } from 'jqwidgets-ng/jqxscrollbar';

@Component({
    imports: [CommonModule, jqxScrollBarModule],
    selector: 'app-root',
    templateUrl: './app.html'
})

export class App {
    readonly HorizontalDiv = viewChild.required<ElementRef>('HorizontalDiv');

    valueChanged(event: any): void {
        this.HorizontalDiv().nativeElement.innerText = 'Horizontal (' + parseInt(event.currentValue) + ')';
    };
}

app.html

<div #HorizontalDiv style='margin-top: 10px;'>Horizontal</div>
<jqxScrollBar #jqxScrollBar
           (onValueChanged)="valueChanged($event)"
           [rtl]="true" 
           [height]="18" [width]="280"
           [min]="0" 
           [max]="1000">
</jqxScrollBar>

Learn more

More Angular ScrollBar demos