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.
height property – Sets or gets height of the scroll bar.min property – Sets or gets the scrollbar's minimum value.max property – Sets or gets the scrollbar's maximum value.rtl property – Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts.width property – Sets or gets width of the scroll bar.valueChanged event – This event is triggered when the value is changed.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.
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) + ')';
};
}
<div #HorizontalDiv style='margin-top: 10px;'>Horizontal</div>
<jqxScrollBar #jqxScrollBar
(onValueChanged)="valueChanged($event)"
[rtl]="true"
[height]="18" [width]="280"
[min]="0"
[max]="1000">
</jqxScrollBar>