Skip to content
ghiscoding edited this page Dec 12, 2022 · 8 revisions

You might find yourself re-using the same configurations over and over, in that case we got you covered. You can change any of the global options directly in your App Module through forRoot which accept an optional object of Grid Options.

import { AngularSlickgridModule } from 'angular-slickgrid';

@NgModule({
  declarations: [ /*...*/ ],
  imports: [
    AngularSlickgridModule.forRoot({
      enableAutoResize: true,
      autoResize: {
        containerId: 'grid-container',
        sidePadding: 15
      },
      enableFiltering: true,
      enableCellNavigation: true,
      enablePagination: true,
      enableRowSelection: true,
      enableTranslate: true,
      //...
    }),
  ],
  providers: [ /*...*/ ]
});

export class AppModule { }

List of Global Options

For the complete list of available Grid Option, you can take a look at the Default Grid Options file and/or technically any of the options from the grid options - interface are configurable.

Contents

Clone this wiki locally