import * as React from 'react'; import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput'; import JqxRadioButton, { IRadioButtonProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxradiobutton'; export interface IState extends IDateTimeInputProps { leftChecked: IRadioButtonProps['checked']; rightChecked: IRadioButtonProps['checked']; } class App extends React.PureComponent<{}, IState> { constructor(props: {}) { super(props); this.leftBtn = this.leftBtn.bind(this); this.rightBtn = this.rightBtn.bind(this); this.state = { dropDownHorizontalAlignment: 'right', leftChecked: false, rightChecked: true } } public render() { return (

Alignment

Left Right
); } private leftBtn(): void { this.setState({ dropDownHorizontalAlignment: 'left', leftChecked: true, rightChecked: false }); } private rightBtn(): void { this.setState({ dropDownHorizontalAlignment: 'right', leftChecked: false, rightChecked: true }); } } export default App;