Vanilla Installation
NOTE these instructions are for the latest v5.x and might differ from earlier versions of the lib.
1. Install NPM Package
Install the Slickgrid-Vue
, and other external packages like Bootstrap
and Font-Awesome
(Bootstrap, Font-Awesome are optional, you can choose other lib if you wish)
2. Create a basic grid
And finally, you are now ready to use it in your project, for example let's create both html/ts files for a basic example.
1. define a grid container in your View
2. configure the Column Definitions, Grid Options and pass a Dataset to the grid
below we use mounted
, but it could be totally different dependending on what framework you use (it could be mounted
, attached
, onRender
, ...)
3. CSS / SASS Styles
Load your prefered theme, choose between Bootstrap (default), Material or Salesforce themes. You can also customize them to your taste (either by using SASS or CSS variables).
CSS
Default compiled css
, you can load it through HTML or import it in your JS code depending on your project.
Note to use a different theme, simply replace the theme suffix, for example
"slickgrid-theme-material.css"
for the Material Theme.
SASS (scss)
4. Explore the Documentation
The last step is really to explore all the pages that are available on the documentation website which are often updated. For example a good starter is to look at the following
5. Get Started
6. CSP Compliance
All Live Demo Examples have links to the actual code
If you would like to see the code to a particular Example. Just click on the "see code" that is available in every live examples.
... and that should cover it, now let's code!
Last updated