import * as React from 'react';
import JqxScrollBar, { IScrollBarProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxscrollbar';
export interface IState extends IScrollBarProps {
longSize: number,
shortSize: number
}
class App extends React.PureComponent<{}, IState> {
constructor(props: {}) {
super(props);
// initial state setup
this.state = {
longSize: 280,
max: 1000,
min: 0,
shortSize: 18
};
}
public render() {
return (
);
}
// Event handling
private onValueChangedVertical(event: any): void {
const verticalDiv = document.querySelector("#vertical");
verticalDiv!.innerHTML = 'Vertical (' + parseInt(event.currentValue, 10) + ')';
}
private onValueChangedHorizontal(event: any): void {
const horizontalDiv = document.querySelector("#horizontal");
horizontalDiv!.innerHTML = 'Horizontal (' + parseInt(event.currentValue, 10) + ')';
}
}
export default App;