Sha256: adc134b4465acedc035dc4007931a98652df18547b1c99cd31c5eb592c66a32b
Contents?: true
Size: 753 Bytes
Versions: 188
Compression:
Stored size: 753 Bytes
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { Table } from 'patternfly-react'; import { noop } from 'foremanReact/common/helpers'; const TableSelectionHeaderCell = ({ id, label, checked, onChange, ...props }) => ( <Table.SelectionHeading aria-label={label}> <Table.Checkbox id={id} label={label} checked={checked} onChange={onChange} {...props} /> </Table.SelectionHeading> ); TableSelectionHeaderCell.propTypes = { id: PropTypes.string, label: PropTypes.string, checked: PropTypes.bool, onChange: PropTypes.func, }; TableSelectionHeaderCell.defaultProps = { id: 'selectAll', label: '', checked: false, onChange: noop, }; export default TableSelectionHeaderCell;
Version data entries
188 entries across 188 versions & 1 rubygems