How to use the rc-table.propTypes function in rc-table

To help you get started, we’ve selected a few rc-table 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 cncjs / cncjs / src / web / components / Table / Table.jsx View on Github external
import classNames from 'classnames';
import React, { Component, PropTypes } from 'react';
import RCTable from 'rc-table';
import styles from './index.styl';

const renderWithTooltip = (value, tooltip) => {
    if (typeof value === 'string') {
        tooltip = value;
    }
    return (<div title="{tooltip}">{value}</div>);
};

class Table extends Component {
    static propTypes = {
        ...RCTable.propTypes,
        title: PropTypes.func,
        footer: PropTypes.func,
        border: PropTypes.bool
    };
    static defaultProps = {
        ...RCTable.defaultProps,
        border: true
    };

    render() {
        const {
            className,
            title,
            footer,
            border,
            data,

rc-table

table ui component for react

MIT
Latest version published 22 days ago

Package Health Score

87 / 100
Full package analysis

Popular rc-table functions