How to use the @blueprintjs/table/src.SelectionModes.ALL function in @blueprintjs/table

To help you get started, we’ve selected a few @blueprintjs/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 palantir / blueprint / packages / table-dev-app / src / features.tsx View on Github external
const stateData = (this.state as any)[stateKey] as { [key: string]: T };
        const values = { ...stateData, [dataKey]: value };
        this.setState({ [stateKey]: values } as any);
    }
}

ReactDOM.render(, document.getElementById("table-editable-names"));

ReactDOM.render(
    getTableComponent(
        2,
        2,
        {},
        {
            enableGhostCells: true,
            selectionModes: SelectionModes.ALL,
        },
    ),
    document.getElementById("table-ghost"),
);

ReactDOM.render(
    getTableComponent(
        2,
        2,
        {},
        {
            enableGhostCells: true,
            selectionModes: SelectionModes.ALL,
        },
    ),
    document.getElementById("table-inline-ghost"),
github palantir / blueprint / packages / table-dev-app / src / features.tsx View on Github external
{
            enableGhostCells: true,
            selectionModes: SelectionModes.ALL,
        },
    ),
    document.getElementById("table-inline-ghost"),
);

ReactDOM.render(
    getTableComponent(
        200,
        100 * 1000,
        {},
        {
            enableGhostCells: true,
            selectionModes: SelectionModes.ALL,
        },
    ),
    document.getElementById("table-big"),
);

class RowSelectableTable extends React.Component<{}, {}> {
    public state = {
        selectedRegions: [Regions.row(2)],
    };

    public render() {
        return (
            <div>
                </div>