Skip to content
Snippets Groups Projects
ColumnConfig.jsx 1.97 KiB
Newer Older
  • Learn to ignore specific revisions
  • import _ from 'lodash'
    import React from 'react'
    
    import { withStyles } from '@material-ui/core/styles'
    
    import IconButton from '@material-ui/core/IconButton'
    import SettingsIcon from '@material-ui/icons/Settings'
    
    import Popover from '@material-ui/core/Popover'
    
    import ColumnConfigRow from './ColumnConfigRow.jsx'
    
        display: 'flex',
        alignItems: 'center'
      },
      columns: {
        listStyle: 'none',
        padding: '10px 20px',
        margin: 0
    
        super(props)
        this.state = {
          el: null
        }
        this.handleOpen = this.handleOpen.bind(this)
        this.handleClose = this.handleClose.bind(this)
      }
    
    
        logger.log(logger.DEBUG, 'ColumnConfig.render')
    
        const { classes, columns, onVisibleChange, onOrderChange } = this.props
    
            <IconButton onClick={this.handleOpen}>
              <SettingsIcon />
    
            <Popover
              open={Boolean(el)}
              anchorEl={el}
              onClose={this.handleClose}
              anchorOrigin={{
                vertical: 'top',
    
                    <ColumnConfigRow
                      column={column}
                      onVisibleChange={onVisibleChange}
                      onOrderChange={onOrderChange}
    
    export default _.flow(withStyles(styles))(ColumnConfig)