import * as React from 'react'; import JqxProgressBar from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxprogressbar'; import JqxRepeatButton from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrepeatbutton'; class App extends React.PureComponent<{}> { private myProgressBar = React.createRef(); constructor(props: {}) { super(props); this.repeatOnClick = this.repeatOnClick.bind(this); } public render() { return (
Click Me!
); } private repeatOnClick(): void { let currentValue = this.myProgressBar.current!.val(); currentValue += 1; this.myProgressBar.current!.setOptions({ animationDuration: 0, value: currentValue }); } } export default App;