This event is triggered when a new color is picked.
Code examples
Bind to the colorchange
event of jqxColorPicker.
import React from 'react';
import ReactDOM from 'react-dom';
import JqxColorPicker from 'jqwidgets-react/react_jqxcolorpicker.js';
class App extends React.Component {
componentDidMount() {
this.refs.myColorPicker.on('colorchange', (event) => {
// Do Something... });
}
render() {
return (
<JqxColorPicker ref=
'myColorPicker' width={250} height={250}
/>
)
}
}
ReactDOM.render(
<App />, document.getElementById(
'app'));