How to use the react-virtualized.Column.propTypes function in react-virtualized

To help you get started, we’ve selected a few react-virtualized examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Skyscanner / backpack / packages / bpk-component-datatable / src / BpkDataTableColumn.js View on Github external
// BpkDataTableColumn is just a props wrapper since Table only accepts Column children
// BpkDataTable uses BpkDataTableColumn.toColumn to convert BpkDataTableColumn to Columns
const BpkDataTableColumn = () => null;

BpkDataTableColumn.toColumn = (bpkDataTableColumn, key) => {
  const { className, ...rest } = bpkDataTableColumn.props;
  const classNames = [getClassName('bpk-data-table-column')];

  if (className) {
    classNames.push(className);
  }

  return ;
};

BpkDataTableColumn.propTypes = { ...Column.propTypes };
BpkDataTableColumn.defaultProps = {
  ...Column.defaultProps,
  headerRenderer: bpkHeaderRenderer,
};

export default BpkDataTableColumn;
github GSS-FED / vital-ui-kit-react / packages / web / src / Table / SimpleTable / Column.jsx View on Github external
type Props = {
  /** Checkbox renderer */
  checkboxRenderer?: CheckboxRenderer,
};

class Column extends React.Component {
  static defaultProps = {
    ...BaseColumn.defaultProps,
    headerRenderer: defaultHeaderRenderer,
    checkboxRenderer: defaultCheckboxRenderer,
  };

  static HeaderRenderer = defaultHeaderRenderer;

  static propTypes = BaseColumn.propTypes;

  render() {
    return ;
  }
}

export default Column;