import * as React from 'react'; import JqxButton from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxbuttons'; import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxformattedinput'; class App extends React.PureComponent<{}> { private myFormattedInput = React.createRef(); constructor(props: {}) { super(props); this.getDecimal = this.getDecimal.bind(this); this.getExponential = this.getExponential.bind(this); this.getScientific = this.getScientific.bind(this); this.getEngineering = this.getEngineering.bind(this); } public render() { return (
Get Decimal Value Get Exponential Notation

Get Scientific Notation Get Engineering Notation
); } private getDecimal(): void { const decimalValue = this.myFormattedInput.current!.val('decimal'); alert('Decimal Value: ' + decimalValue); }; private getExponential(): void { const exponentialValue = this.myFormattedInput.current!.val('exponential'); alert('Exponential Notation: ' + exponentialValue); }; private getScientific(): void { const scientificValue = this.myFormattedInput.current!.val('scientific'); alert('Scientific Notation: ' + scientificValue); }; private getEngineering(): void { const engineeringValue = this.myFormattedInput.current!.val('engineering'); alert('Engineering Notation: ' + engineeringValue); }; } export default App;