4.7.0 • Published 9 days ago

@slickgrid-universal/rxjs-observable v4.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 days ago

License: MIT TypeScript lerna--lite npm npm

Actions Status Cypress.io jest codecov

RxJS Observable Service Wrapper

@slickgrid-universal/rxjs-observable

An RxJS Observable Service Wrapper to make it possible to use RxJS with Slickgrid-Universal (with a Backend Service like OData/GraphQL). By default any Backend Service will be using Promises unless we use this RxJS Observable package.

This package is simply a bridge, a facade, to make it possible to use RxJS without adding RxJS to the @slickgrid-universal/common list of dependencies, so RxJS is a dependency of this package without being a dependency of the common (core) package, This will avoid adding dependencies not everyone need and won't clutter the common package (the common package will simply use an empty interface, which won't do anything, without requiring to install RxJS at all. We also have full unit tests coverage for all of that).

Internal Dependencies

External Dependencies

Installation

Follow the instruction provided in the main README, you can see a demo by looking at the GitHub Demo page.

Usage

In order to use the Service, you will need to register it in your grid options via the registerExternalResources as shown below and of course install RxJS itself (this package requires RxJS 7).

ViewModel
import { GridOdataService } from '@slickgrid-universal/odata';
import { RxJsResource } from '@slickgrid-universal/rxjs-observable';

export class MyExample {
  gridOptions: GridOption;

  initializeGrid {
    this.gridOptions = {
      // you will most probably use it with a Backend Service, for example with OData or GraphQL
      backendServiceApi: {
        service: new GridOdataService(),
        preProcess: () => this.displaySpinner(true),
        postProcess: () => this.displaySpinner(false),

        // assuming your Http call is with an RxJS Observable
        process: (query) => this.getAllCustomers$(query),
      } as OdataServiceApi,

      // ...
      externalResources: [new RxJsResource()],
    };
  }
}
4.7.0

9 days ago

4.6.1

28 days ago

4.6.0

1 month ago

4.5.0

2 months ago

4.4.1

3 months ago

4.4.0

3 months ago

4.3.1

3 months ago

4.3.0

3 months ago

4.2.0

4 months ago

4.1.0

4 months ago

4.0.3

4 months ago

4.0.2

5 months ago

3.7.2

5 months ago

4.0.1-alpha.1

5 months ago

4.0.1-alpha.0

5 months ago

4.0.0-alpha.0

5 months ago

3.7.1

5 months ago

3.7.0

5 months ago

3.4.0

6 months ago

3.2.2

7 months ago

3.2.1

8 months ago

3.2.0

8 months ago

3.0.1

10 months ago

3.6.0

5 months ago

3.4.2

6 months ago

3.4.1

6 months ago

3.3.0

7 months ago

3.1.0

9 months ago

3.5.1

6 months ago

3.5.0

6 months ago

3.3.2

7 months ago

3.0.0

11 months ago

3.0.0-beta.0

11 months ago

2.6.4

11 months ago

2.5.0

1 year ago

2.6.1

1 year ago

2.6.0

1 year ago

2.6.3

1 year ago

2.6.2

1 year ago

2.4.1

1 year ago

2.4.0

1 year ago

2.3.0

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.2.2

1 year ago

2.1.3

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

2.0.0-alpha.0

2 years ago

2.1.0

1 year ago

2.0.0

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.0

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.1

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

0.19.1

2 years ago

0.19.2

2 years ago

0.19.0

3 years ago

0.18.0

3 years ago

0.17.0

3 years ago

0.16.2

3 years ago

0.16.0

3 years ago

0.16.1

3 years ago

0.15.0

3 years ago

0.14.1

3 years ago

0.14.0

3 years ago

0.13.0

3 years ago

0.12.0

3 years ago