@omnigrid/pro-license 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
# @omnigrid/pro-license
|
|
2
2
|
|
|
3
|
-
Offline license verification and
|
|
3
|
+
Offline license verification and demo watermark shared by all OmniGrid Pro plugins.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
- `BaseProPlugin` – extend it in a Pro plugin and implement `onRegister(api)`. It reads `GridOptions.licenseKey` through `api.getLicenseKey()`; if the key is missing, invalid or expired the plugin still works and a dismissible watermark is mounted in the `bodyTop` slot (dismissal stored in `sessionStorage`).
|
|
5
|
+
## Usage
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
Pass your commercial license key via the global grid options:
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
```
|
|
13
|
-
npm run generate-keys -w @omnigrid/pro-license -- <path-outside-repo>/private.key
|
|
14
|
-
npm run generate-license -w @omnigrid/pro-license -- --private-key <path> --owner "Acme Corp" --email dev@acme.com --expires 2027-01-01
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
Omit `--expires` for a perpetual license. Never commit the private key.
|
|
9
|
+
```tsx
|
|
10
|
+
<OmniGrid "your_base64_encoded_license_key_here", ... // gridOptions="{{" licenseKey: }}/>
|