import * as React from 'react'; import JqxComplexInput from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcomplexinput'; import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel'; class App extends React.PureComponent<{}> { private myPanel = React.createRef(); constructor(props: {}) { super(props); this.complexInputOnChange = this.complexInputOnChange.bind(this); } public render() { return (
Events log:
); } private complexInputOnChange(event: any): void { const args = event.args; if (args) { const value = args.value; const oldValue = args.oldValue; const realPart = args.realPart; const imaginaryPart = args.imaginaryPart; this.myPanel.current!.append('' + event.type + '
' + 'value: ' + value + ', old value: ' + oldValue + ',
real part: ' + realPart + ', imaginary part: ' + imaginaryPart + '
'); } } } export default App;