import React from 'react'; import ReactDOM from 'react-dom'; import JqxMenu from '../../../jqwidgets-react/react_jqxmenu.js'; import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js'; class App extends React.Component { componentDidMount() { this.refs.animation.on('change', (event) => { let value = event.args.checked; // enable or disable the menu's animation if (!value) { this.refs.myMenu.setOptions({ animationShowDuration: 0, animationHideDuration: 0, animationShowDelay: 0 }); } else { this.refs.myMenu.setOptions({ animationShowDuration: 200, animationHideDuration: 200, animationShowDelay: 200 }); } }); this.refs.disabled.on('change', (event) => { let value = event.args.checked; // enable or disable the menu if (!value) { this.refs.myMenu.disabled(false); } else { this.refs.myMenu.disabled(true); } }); this.refs.hover.on('change', (event) => { let value = event.args.checked; // enable or disable the menu's hover effect if (!value) { this.refs.myMenu.enableHover(false); } else { this.refs.myMenu.enableHover(true); } }); this.refs.open.on('change', (event) => { let value = event.args.checked; // enable or disable the opening of the top level menu items when the user hovers them. if (!value) { this.refs.myMenu.autoOpen(false); } else { this.refs.myMenu.autoOpen(true); } }); this.refs.topLevelArrows.on('change', (event) => { let value = event.args.checked; // enable or disable the top level arrows. if (!value) { this.refs.myMenu.showTopLevelArrows(false); } else { this.refs.myMenu.showTopLevelArrows(true); } }); } render () { let styleSpace = { marginTop: '20px', marginLeft: '60px', fontSize: '14px', fontFamily: 'Verdana Arial', float: 'left' }; let menuInnerHtml = ''; return (

Settings
) } } ReactDOM.render(, document.getElementById('app'));