@nlabtech/nlabs-grid 1.1.0 → 1.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 +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,12 +38,12 @@ A modern, feature-rich, and highly customizable Angular data grid component buil
|
|
|
38
38
|
|
|
39
39
|
- **GitHub Repository**: [https://github.com/NlabsNpmPackages/nlabs-grid](https://github.com/NlabsNpmPackages/nlabs-grid)
|
|
40
40
|
- **Example Usage**: [https://github.com/NlabsGlobalFullStack/nlabs-data-grid-example](https://github.com/NlabsGlobalFullStack/nlabs-data-grid-example)
|
|
41
|
-
- **npm Package**: [https://www.npmjs.com/package/nlabs-grid](https://www.npmjs.com/package/nlabs-grid)
|
|
41
|
+
- **npm Package**: [https://www.npmjs.com/package/@nlabtech/nlabs-grid](https://www.npmjs.com/package/@nlabtech/nlabs-grid)
|
|
42
42
|
|
|
43
43
|
## Installation
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
|
-
npm install nlabs-grid
|
|
46
|
+
npm install @nlabtech/nlabs-grid
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
## Quick Start
|
|
@@ -52,7 +52,7 @@ npm install nlabs-grid
|
|
|
52
52
|
|
|
53
53
|
```typescript
|
|
54
54
|
import { Component } from '@angular/core';
|
|
55
|
-
import { DataGridComponent, GridConfig, ODataAdapter } from 'nlabs-grid';
|
|
55
|
+
import { DataGridComponent, GridConfig, ODataAdapter } from '@nlabtech/nlabs-grid';
|
|
56
56
|
import { HttpClient } from '@angular/common/http';
|
|
57
57
|
|
|
58
58
|
@Component({
|
|
@@ -171,7 +171,7 @@ onRowUnselect(row: any): void {
|
|
|
171
171
|
### Custom Actions Column
|
|
172
172
|
|
|
173
173
|
```typescript
|
|
174
|
-
import { GridColumnCommandTemplateDirective } from 'nlabs-grid';
|
|
174
|
+
import { GridColumnCommandTemplateDirective } from '@nlabtech/nlabs-grid';
|
|
175
175
|
|
|
176
176
|
@Component({
|
|
177
177
|
imports: [DataGridComponent, GridColumnCommandTemplateDirective],
|
|
@@ -202,7 +202,7 @@ import { GridColumnCommandTemplateDirective } from 'nlabs-grid';
|
|
|
202
202
|
### Custom Footer Template
|
|
203
203
|
|
|
204
204
|
```typescript
|
|
205
|
-
import { GridFooterTemplateDirective } from 'nlabs-grid';
|
|
205
|
+
import { GridFooterTemplateDirective } from '@nlabtech/nlabs-grid';
|
|
206
206
|
|
|
207
207
|
@Component({
|
|
208
208
|
imports: [DataGridComponent, GridFooterTemplateDirective],
|
|
@@ -224,7 +224,7 @@ import { GridFooterTemplateDirective } from 'nlabs-grid';
|
|
|
224
224
|
### OData Integration
|
|
225
225
|
|
|
226
226
|
```typescript
|
|
227
|
-
import { ODataAdapter } from 'nlabs-grid';
|
|
227
|
+
import { ODataAdapter } from '@nlabtech/nlabs-grid';
|
|
228
228
|
|
|
229
229
|
// Create adapter
|
|
230
230
|
this.odataAdapter = new ODataAdapter<User>(
|
|
@@ -245,7 +245,7 @@ this.odataAdapter = new ODataAdapter<User>(
|
|
|
245
245
|
For standard REST endpoints (non-OData), use the `RestAdapter`:
|
|
246
246
|
|
|
247
247
|
```typescript
|
|
248
|
-
import { RestAdapter, RestAdapterConfig } from 'nlabs-grid';
|
|
248
|
+
import { RestAdapter, RestAdapterConfig } from '@nlabtech/nlabs-grid';
|
|
249
249
|
|
|
250
250
|
// Simple usage - API returns { data: [], total: number }
|
|
251
251
|
this.restAdapter = new RestAdapter<User>(
|