jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
43 lines (31 loc) • 1.25 kB
Plain Text
import React from 'react';
import ReactDOM from 'react-dom';
import JqxNumberInput from '../../../jqwidgets-react/react_jqxnumberinput.js';
class App extends React.Component {
render () {
return (
<div id='jqxWidget'>
<div style={{ marginTop: 10 }}>Number</div>
<JqxNumberInput ref='numericInput'
width={250} height={25} spinButtons={true}
/>
<div style={{ marginTop: 10 }}>Percentage</div>
<JqxNumberInput ref='percentageInput'
width={250} height={25} digits={3} spinButtons={true}
symbolPosition={'right'} symbol={'%'}
/>
<div style={{ marginTop: 10 }}>Currency</div>
<JqxNumberInput ref='currencyInput'
width={250} height={25}
symbol={'%'} spinButtons={true}
/>
<div style={{ marginTop: 10 }}>Disabled</div>
<JqxNumberInput ref='disabledInput'
width={250} height={25}
disabled={true} spinButtons={true}
/>
</div>
)
}
}
ReactDOM.render(<App />, document.getElementById('app'));