React UI Components
Show Demo List
|
ReactJS ComplexInput Demo. jqxComplexInput Fluid Size Example. The width of the complex input in this demo is in Percentages.
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title id='Description'>
ReactJS ComplexInput Demo. jqxComplexInput Fluid Size Example. The width of the complex input in this demo is in Percentages.
</title>
<link rel="stylesheet" href="../jqwidgets/styles/jqx.base.css" type="text/css" />
<script type="text/javascript" src="../jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="../jqwidgets/jqxcomplexinput.js"></script>
<script type="text/javascript" src="../scripts/demos.js"></script>
<style>
html, body, #app {
width: 100%;
height: 100%;
overflow: hidden;
padding: 0;
margin: 0;
}
</style>
</head>
<body>
<div class="example-description" style="margin-bottom:3em">
ReactJS ComplexInput Demo. jqxComplexInput Fluid Size Example. The width of the complex input in this demo is in Percentages.
</div>
<div id="app"></div>
<script src="../build/complexinput_fluidsize.bundle.js"></script>
</body>
</html>
import React from 'react';import ReactDOM from 'react-dom';import JqxComplexInput from '../../../jqwidgets-react/react_jqxcomplexinput.js';class App extends React.Component {
render() {
return (
<JqxComplexInput ref='myComplexInput'
width={'30%'} height={25} value={'1000 + 2i'} spinButtons={true}
/>
)
}
}
ReactDOM.render(<App />, document.getElementById('app'));