import React from 'react'; import ReactDOM from 'react-dom'; import JqxScrollView from '../../../jqwidgets-react/react_jqxscrollview.js'; import JqxDropDownButton from '../../../jqwidgets-react/react_jqxdropdownbutton.js'; import JqxColorPicker from '../../../jqwidgets-react/react_jqxcolorpicker.js'; class App extends React.Component { componentDidMount() { this.refs.DropDownButton.setContent(this.getTextElementByColor(new $.jqx.color({ hex: "ffaabb" }))); this.refs.ColorPicker.on('colorchange', (event) => { this.refs.DropDownButton.setContent(this.getTextElementByColor(event.args.color)); document.getElementsByClassName('gallery')[0].style.borderColor = '#' + event.args.color.hex; }); } getTextElementByColor(color) { if (color == 'transparent' || color.hex == "") { return '