import * as React from 'react'; import JqxCheckBox from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcheckbox'; import JqxDropDownButton, { IDropDownButtonProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdropdownbutton'; import JqxTree from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtree'; class App extends React.PureComponent<{}, IDropDownButtonProps> { private myDropDownButton = React.createRef(); private myTree = React.createRef(); constructor(props: {}) { super(props); this.treeOnSelect = this.treeOnSelect.bind(this); this.checkBoxOnChange = this.checkBoxOnChange.bind(this); this.state = { autoOpen: false } } public componentDidMount() { this.myDropDownButton.current!.setContent('
Home
'); } public render() { return (
  • Home
  • Solutions
    • Education
    • Financial services
    • Government
    • Manufacturing
    • Solutions
      • eLearning
      • Mobile
      • RIA
      • Training
  • Products
    • PC products
    • Mobile products
    • All products
Open On Mouse Over
); } private treeOnSelect(event: any): void { const item = this.myTree.current!.getItem(event.args.element); const dropDownContent = `
${item.label}
`; this.myDropDownButton.current!.setContent(dropDownContent); } private checkBoxOnChange(event: any): void { this.setState({ autoOpen: event.args.checked }); } } export default App;