How to use the @hpcc-js/dgrid-shim.Memory function in @hpcc-js/dgrid-shim

To help you get started, we’ve selected a few @hpcc-js/dgrid-shim 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 hpcc-systems / Visualization / packages / dgrid / src / DatasourceTable.ts View on Github external
return super.render(w => {
            if (this._prevDatasource !== this.datasource()) {
                this._dgrid.set("collection", new Memory());
                this._dgrid.set("columns", []);
                this._prevDatasource = this.datasource();
                if (this._prevDatasource) {
                    const store = new DatasourceStore(this._prevDatasource);
                    this._dgrid.set("columns", store.columns());
                    this._dgrid.set("collection", store);
                    if (callback) {
                        callback(w);
                    }
                } else {
                    if (callback) {
                        callback(w);
                    }
                }
            } else {
                if (callback) {

@hpcc-js/dgrid-shim

dgrid shim

Apache-2.0
Latest version published 25 days ago

Package Health Score

75 / 100
Full package analysis