import React from 'react';
import ReactDOM from 'react-dom';
import JqxDropDownButton from '../../../jqwidgets-react/react_jqxdropdownbutton.js';
import JqxTree from '../../../jqwidgets-react/react_jqxtree.js';
import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js';
class App extends React.Component {
componentDidMount() {
this.refs.DropDownButton.setContent('
Home
');
this.refs.Tree.on('select', (event) => {
let item = this.refs.Tree.getItem(event.args.element);
let dropDownContent = '' + item.label + '
';
this.refs.DropDownButton.setContent(dropDownContent);
});
this.refs.CheckBox.on('change', (event) => {
this.refs.DropDownButton.autoOpen(event.args.checked);
});
}
render(){
let treeHTML = `
- Home
- Solutions
- Education
- Financial services
- Government
- Manufacturing
- Solutions
- eLearning
- Mobile
- RIA
- Training
- Products
- PC products
- Mobile products
- All products
`;
return (
)
}
}
ReactDOM.render(, document.getElementById('app'));