📘 Documentation website powered by GitBook for version 4.0+ (or use the Wikis for older versions)
Live Demo website
Also available in Stackblitz (Codeflow) below, this can also be used to provide an issue repro.
This is a monorepo project (using pnpm workspaces and Lerna-Lite) which is regrouping a few packages under a single repository. It was originally requiring SlickGrid as an external dependency, but since v4.0, that is no longer the case and it is now a standalone library. The main goal of this project is to create a common repo that includes all Editors, Filters, Extensions and Services that could be used by any Framework (it is framework agnostic). The original SlickGrid is like an IKEA product that requires assembling everything yourself, however the goal of the project here is to offer an all assembled product that already includes a set of built-in Editors, Filters, Formatters while also offering extra (but optional) packages like OData, GraphQL, Export to Excel ... which SlickGrid simply does not offer by default. The project also provides multiple Themes including Dark Mode. See below for more project details.
Below is a list of reasons why this project was created and why it is a monorepo project:
- it was originally created to remove a lot of duplicated code from these 2 repos
Angular-Slickgrid and Aurelia-Slickgrid
- prior to creating this monorepo, these 2 libs had ~90% of TypeScript code in common which was not very DRY.
- it is also a lot easier to maintain by pushing fixes in 1 common project (this one here).
- it also decoupled a few Services that are not required by every project (OData, GraphQL, Export to CSV, Export to Excel, Composite Editor, RxJS, ...)
- and finally it is framework agnostic, it could be implemented in many different frameworks (if you are interested in adding a different framework port that is not listed in the table below, then please open a new Discussion)
- you can use it in plain JavaScript (ES6) or TypeScript, on our side we use it with plain JS (ES6) in our Salesforce environment with LWC (Lightning Web Component)
Check out the Releases section for all the latest News & Releases.
You could ⭐ the lib and perhaps support me with caffeine via the button below. Thanks in advance.
The GitHub live demo shows 2 different UI themes (Material Design / Salesforce), but you could also choose the Bootstrap theme which is demoed in other frameworks with available links shown in the table below. Also note that these live demos are using Bootstrap and Bulma, but in theory you could use any UI libraries. The project tries to be as much agnostic as possible and it does so by providing a ton of CSS/SASS variables which are available to customize it the way you want.
Project Repo | Live Demo | UI used | Description |
---|---|---|---|
Angular-Slickgrid | demo | Bootstrap | for Angular framework |
Aurelia-Slickgrid | demo | Bootstrap | for Aurelia framework |
Slickgrid-React | demo | Bootstrap | for React framework |
Slickgrid-Universal-WebPack-Demo | demo | Bulma | Slickgrid-Universal demo with WebPack & TypeScript (demo purposes only) |
Slickgrid-Universal-Vite-Demo | demo | Bulma | Slickgrid-Universal demo with Vite & TypeScript (demo purposes only) |
The Slickgrid-Universal live demo is a Vanilla Implementation (which is not associated to any framework) built with ViteJS (originally WebPack) and is also being used to run E2E tests with Cypress for testing all UI functionalities. The Vanilla-force-bundle, which extends the vanilla-bundle package is what we use in our SalesForce implementation (with Lightning Web Component) and can also be used as Standalone script (see zip file). These were all the original reasons to create this monorepo library and mainly to avoid code duplication. Dark Mode is also shown in some examples (not all), see Dark Mode documentation for more infos.
Slickgrid-Universal has close to 100% Unit Test Coverage, ~5,000 Vitest unit tests and also 700 Cypress E2E tests to cover all Examples and most UI functionalities (each framework implementation also have an additional 600 tests), the goal is to test everything and offer peace of mind that pretty much all the code and PR changes are fully tested before being released.
NOTE: the installation instructions below are only required if you want to contribute to this project, if however you just want to download a quick Slickgrid-Universal demo, then I would suggest to take a look at either Slickgrid-Universal Vite Demo or Slickgrid-Universal WebPack Demo.
To get started and do development with this monorepo, you will need to clone the repo and follow the steps shown below. You must be at the root of the project in order to run the commands shown below. This project also requires pnpm
.
- pnpm installation
This project uses pnpm workspaces, you can install pnpm by choosing 1 of these 2 choices:
a. following their installation
b. or install pnpm via Node corepack
corepack enable
# optionally update pnpm to latest
corepack prepare pnpm@latest --activate
- Run Dev (Vanilla Implementation)
There is a Vanilla flavour implementation of this monorepo, vanilla means that it is not associated to any framework and is written in plain TypeScript without being bound to any framework. The implementation is very similar to Angular and Aurelia. It could be used as a guideline to implement it for other framework ports.
pnpm run dev
- Build (bundle)
You also need to run a full build in order to run the Vitest unit tests
pnpm run bundle
You must go through Installation Steps 1-3 prior to running the Vitest unit tests OR steps 1-2 when running Cypress E2E tests.
To run all unit tests (with Vitest), you can run one of the following commands (make sure that steps 1-3 were executed prior to running this command)
pnpm run test
# or run Vitest in watch mode
pnpm run test:watch
To run all E2E tests (with Cypress), you can run one of the following commands (make sure that steps 1-2 were executed prior to running this command)
# will open the Cypress GUI
pnpm run cypress
# or run it in the shell (like a CI/CD would)
pnpm run cypress:ci