import * as React from 'react'; import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput'; import JqxPanel from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxpanel'; class App extends React.PureComponent<{}> { private myPanel = React.createRef(); constructor(props: {}) { super(props); this.onValueChanged = this.onValueChanged.bind(this); this.onOpen = this.onOpen.bind(this); this.onClose = this.onClose.bind(this); } public render() { return (
Events:
); } private onValueChanged(event: any): void { this.myPanel.current!.clearcontent(); const date = event.args.date; this.myPanel.current!.prepend('
New Value: ' + date + '
'); } private onOpen(): void { this.myPanel.current!.prepend('
Popup Opened
'); } private onClose(): void { this.myPanel.current!.prepend('
Popup Closed
'); } } export default App;