Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const ORDER_COLUMNS = [
- { name: 'orderNumber', title: 'Order', width: '10%', type: 'string' },
- { name: 'orderType', title: 'Type', width: '10%', type: 'string' }
- ];
- class OrderGridControl extends React.Component {
- constructor(props) {
- super(props);
- this.state = {
- orderColumns: ORDER_COLUMNS
- };
- }
- ...
- }
- export default OrderGridControl;
- import {OrderGridControl, ORDER_COLUMNS} from 'component/order-grid-control';
- class OrderQueryPage extends React.Component {
- constructor(props) {
- super(props);
- this.state = {
- orderColumns: ORDER_COLUMNS
- };
- console.info(this.state.orderColumns);
- }
- ...
- render() {
- return (
- <div>
- <PropertyGrid gridSetup={this.state.orderColumns} />
- </div>
- );
- }
- }
- import OrderGridControl, { ORDER_COLUMNS } from 'component/order-grid-control';
- import GridControl, { ORDER_COLUMNS } from 'component/order-grid-control';
Add Comment
Please, Sign In to add comment