import React from 'react'; import ReactDOM from 'react-dom'; import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js'; class App extends React.Component { render () { let dataTableHTML = `
First Name Last Name Product Price Quantity
Ian Devling Espresso Truffle $1.75 8
Nancy Wilson Cappuccino $5.00 3
Cheryl Nodier Caffe Americano $2.50 4
Martin Saavedra Caramel Latte $3.80 11
Guylene Bjorn Green Tea $1.50 8
Andrew Burke Caffe Espresso $3.00 2
Regina Murphy White Chocolate Mocha $3.60 6
Michael Murphy Caramel Latte $3.80 2
Petra Bein Caffe Americano $2.50 7
Nancy Nodier Caffe Latte $4.50 10
Peter Devling Green Tea $1.50 1
Beate Saylor Espresso con Panna $3.25 3
Shelley Nodier Peppermint Mocha Twist $4.00 7
Nancy Murphy Peppermint Mocha Twist $4.00 1
Lars Wilson Caffe Espresso $3.00 11
`; let columns = [ { text: 'First Name', dataField: 'First Name', width: 200 }, { text: 'Last Name', dataField: 'Last Name', width: 200 }, { text: 'Product', dataField: 'Product', width: 250 }, { text: 'Unit Price', dataField: 'Price', width: 100, align: 'right', cellsAlign: 'right', cellsFormat: 'c2' }, { text: 'Quantity', dataField: 'Quantity', width: 100, align: 'right', cellsAlign: 'right', cellsFormat: 'n' } ]; return ( ) } } ReactDOM.render(, document.getElementById('app'));