import * as React from 'react'; import * as classNames from 'classnames'; import {CSSProperties, PureComponent} from 'react'; import {Nav, NavItem, NavLink} from 'reactstrap'; import {Layout, Page, PageBody} from './../../components'; import {ComplexDatagrid, MapDatagrid, SimpleDatagrid} from './Datagrid'; import './../styles/ListPageExample'; const styles = { pageComp: { display: 'flex', flexDirection: 'column', width: '100%', paddingLeft: 10, '-webkit-box-orient': 'vertical', '-webkit-box-direction': 'normal', } as CSSProperties, pageCompBody: { position: 'fixed', top: 54, left: 10, height: 'calc(100vh - 54px)', width: 'calc(100% - 10px)', overflow: 'hidden', } as CSSProperties, }; const DrawerContent = ({onClickLink}) => (
{/*
*/}

Section

Beakyn Company
); export interface ListPageExampleState { drawerOpen: boolean; } export class ListPageExample extends PureComponent<{}, ListPageExampleState> { state: ListPageExampleState = { drawerOpen: false, }; render() { return ( Link to List Page, 'Other Path']} drawerContent={this.renderDrawerContent()} drawerHeaderTitle="App Name" drawerOpen={this.state.drawerOpen} mainNavTitle="Some Page" onDrawerClose={this.handleDrawerClose} onDrawerOpen={this.handleDrawerOpen} > ); } renderDrawerContent = () => { return ; } handleDrawerOpen = () => { this.setState({drawerOpen: true}); } handleDrawerClose = () => { this.setState({drawerOpen: false}); } }