All Downloads are FREE. Search and download functionalities are using the official Maven repository.

components.form.fields.multiple.MultipleTableRowSelectCell.js Maven / Gradle / Ivy

import { TableCell, Checkbox } from '@mui/material'
import PropTypes from 'prop-types'
import MultipleDragButton from 'components/form/fields/multiple/MultipleDragButton'

const MultipleTableRowSelectCell = ({ index, features, selected, setSelected }) => {
  return <>
    {features.reorder ? (
      
        
      
    ) : null}
    {features.select ? (
      
        
      
    ) : null}
  
}

export const MultipleRowCheckBox = ({selected, setSelected, index}) => {
  const handleChange = (e, value) => {
    if (value)
      setSelected([...selected, index])
    else
      setSelected(selected.filter(rowId => rowId !== index))
  }

  return 
}

MultipleTableRowSelectCell.propTypes = {
  index       : PropTypes.number.isRequired,
  setSelected: PropTypes.func.isRequired,
  selected   : PropTypes.arrayOf(PropTypes.number.isRequired).isRequired,
}

export default MultipleTableRowSelectCell




© 2015 - 2024 Weber Informatics LLC | Privacy Policy