jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
54 lines (47 loc) • 2.44 kB
JavaScript
import React from 'react';
import ReactDOM from 'react-dom';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js';
import JqxRadioButton from '../../../jqwidgets-react/react_jqxradiobutton.js';
import JqxDropDownButton from '../../../jqwidgets-react/react_jqxdropdownbutton.js';
import JqxSwitchButton from '../../../jqwidgets-react/react_jqxswitchbutton.js';
class App extends React.Component {
componentDidMount() {
let dropDownContent = '<div style="position: relative; margin-left: 3px; margin-top: 5px;">DropDownButton</div>';
this.refs.myDropDownButton.setContent(dropDownContent);
}
render() {
return (
<div>
<b>Checkbox</b>
<JqxCheckBox style={{ marginTop: 10 }} value='eLearning' width={85} rtl={true} />
<JqxCheckBox style={{ marginTop: 5, marginBottom: 10 }} value='Mobile' width={85} rtl={true} />
<b>Radio Button</b>
<JqxRadioButton style={{ marginTop: 10 }} width={85} rtl={true}>On</JqxRadioButton>
<JqxRadioButton style={{ marginTop: 5, marginBottom: 10 }} width={85} rtl={true}>Off</JqxRadioButton>
<b>DropDown Button</b>
<JqxDropDownButton ref='myDropDownButton' style={{ marginTop: 10, marginBottom: 10 }} width={180} height={25} rtl={true}>
<div style={{ direction: 'rtl' }}>
<ul>
<li>Education</li>
<li>Financial services</li>
<li>Government</li>
<li>Manufacturing</li>
<li>Solutions
<ul>
<li>eLearning</li>
<li>Mobile</li>
<li>RIA</li>
<li>Training</li>
</ul>
</li>
</ul>
</div>
</JqxDropDownButton>
<b>Switch Button</b>
<JqxSwitchButton style={{ marginTop: 10 }} width={100} rtl={true} />
</div>
)
}
};
ReactDOM.render(<App />, document.getElementById('app'));