How to use the @blueprintjs/table/src.Utils.reorderArray 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 / denseGridMutableStore.ts View on Github external
public reorderRows(oldIndex: number, newIndex: number, length: number) {
        this.data = Utils.reorderArray(this.data, oldIndex, newIndex, length);
    }
github palantir / blueprint / packages / table-dev-app / src / features.tsx View on Github external
private handleRowsReordered = (oldIndex: number, newIndex: number, length: number) => {
        if (oldIndex === newIndex) {
            return;
        }
        this.setState({ data: Utils.reorderArray(this.state.data, oldIndex, newIndex, length) });
    };
}
github palantir / blueprint / packages / table-dev-app / src / features.tsx View on Github external
private handleColumnsReordered = (oldIndex: number, newIndex: number, length: number) => {
        if (oldIndex === newIndex) {
            return;
        }
        const nextChildren = Utils.reorderArray(this.state.children, oldIndex, newIndex, length);
        this.setState({ children: nextChildren });
    };
github palantir / blueprint / packages / table-dev-app / src / denseGridMutableStore.ts View on Github external
public reorderColumns(oldIndex: number, newIndex: number, length: number) {
        this.orderedColumnKeys = Utils.reorderArray(this.orderedColumnKeys, oldIndex, newIndex, length);
    }