...
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { GridModule, EditService, CommandColumnService } from '@syncfusion/ej2-angular-grids';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,GridModule
],
providers: [EditService, CommandColumnService],
bootstrap: [AppComponent]
})
export class AppModule { }
|
...
<ejs-grid [dataSource]='data' allowPaging='true' [pageSettings]='pageSettings' [editSettings]='editSettings'>
<e-columns>
<e-column field='OrderID' headerText='Order ID' width='120' textAlign='Right' isPrimaryKey='true' [validationRules]='orderidrules'></e-column>
<e-column headerText='Template column' width='120' textAlign='Right'>
<ng-template #template let-data>
<div>
{{data.CustomerID}}
</div>
</ng-template>
</e-column>
...
<e-column headerText='Manage Records' width='160' [commands]='commands'></e-column>
</e-columns>
</ejs-grid> |
|
Local cache – npm cache clean --force
Global cache – npm cache clean --force -g
|