1. Configure NPM Registry
First, configure npm to use the RevoGrid registry:
npm config set "@revolist:registry=https://npm.rv-grid.com"
The command npm config set @revolist:registry=https://npm.rv-grid.com
is used to configure npm
(Node Package Manager) to use a specific registry for packages that are scoped under the @revolist
namespace.
npm login --registry=https://npm.rv-grid.comUsername: ***Password: ***Email: ***
2. Install RevoGrid Pro
Install the RevoGrid and RevoGrid Pro packages:
npm install @revolist/revogridnpm install @revolist/revogrid-pro
3. Framework Integration Packages
For better integration with specific frameworks, you can install the corresponding framework package:
React
npm install @revolist/react-datagrid
Angular
npm install @revolist/angular-datagrid
Vue
npm install @revolist/vue3-datagrid
Svelte
npm install @revolist/svelte-datagrid
Read more about RevoGrid Pro Tokens.
Option 1: Directly Include in Builds
- Copy the into your project’s
assets
orlibs
folder. - Link the necessary JavaScript and CSS files in your HTML or import them into your JavaScript/TypeScript files.
<script src="path/to/revogrid-pro.js"></script><link rel="stylesheet" href="path/to/revogrid-pro.css" />
Or in your module-based project:
import 'path/to/revogrid-pro.js';import 'path/to/revogrid-pro.css';
// If using build tools like Webpack or Vite:// Add the ./release folder path to your resolve or alias configuration to reference the files.
resolve: { alias: { '@revogrid-pro': path.resolve(__dirname, 'path/to/release'), },},
This option is particularly suitable for quick testing or projects that don’t rely on npm for dependency management.
Option 2: package.json Using Local Files
For projects where you want to use a local version of the RevoGrid Pro plugins during development, you can reference the plugin files directly in your package.json. This method is especially useful if you’re working with a cloned version of the repository or testing custom modifications.
Steps to Import Using Local Files:
-
Download files from the link above and extract them to a local folder.
-
Set Up the Local Reference in package.json. In your project’s package.json file, reference the local folder containing the RevoGrid Pro plugins. For example:
{ "dependencies": { "@revolist/revogrid-pro": "file:./release" }}
- Install Dependencies. Run the following command to install the local plugin:
npm install
- NPM will create a symlink to the specified folder, allowing you to use the local files as if they were an npm package. Use the Plugin in Your Project. Import the RevoGrid Pro plugins as you would with any npm package:
import { ColumnStretchPlugin } from '@revolist/revogrid-pro';
- Ensure you have access to the GitHub repository.
- Authenticate your npm client with GitHub by creating a .npmrc file in your project directory or user home directory with the following content:
@revolist:registry=https://npm.pkg.github.com///npm.pkg.github.com/:_authToken=YOUR_PERSONAL_ACCESS_TOKEN
- Replace
YOUR_PERSONAL_ACCESS_TOKEN
with a GitHub token that hasread:packages
and repo permissions. - Install the package. Run the following command to install the latest version from the private package registry:
npm install @revolist/revogrid-pro@latest
For additional guidance on installing from GitHub’s private registry, please refer to the official GitHub Packages documentation.
For maximum control, you can build the RevoGrid Pro plugins from source.
This allows you to customize the build process if needed.
- Clone the repository and navigate to the project directory:
git clone https://github.com/revolist/revogrid-pro.gitcd revogrid-pro
- Run the build command to generate the plugin package:
npm run build:plugin
- After the build completes, you’ll find the generated files in the
/release/dist
folder, ready for use in your project.
Choose the method that best suits your workflow, and enjoy the powerful features of RevoGrid Pro plugins!