How to use the ngx-bootstrap/pagination.PaginationModule.forRoot function in ngx-bootstrap

To help you get started, we’ve selected a few ngx-bootstrap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cyclosproject / cyclos4-ui / src / app / shared / shared.module.ts View on Github external
DateTimePipe,
    TimePipe,
    NumberPipe,
    CurrencyPipe,
    BooleanPipe,
    AccountPipe
  ],
  imports: [
    CommonModule,
    RouterModule,
    ReactiveFormsModule,
    AlertModule.forRoot(),
    ModalModule.forRoot(),
    ButtonsModule.forRoot(),
    BsDropdownModule.forRoot(),
    PaginationModule.forRoot(),
    ProgressbarModule.forRoot(),
    SortableModule.forRoot(),
    TooltipModule.forRoot(),

    LayoutModule,

    AgmCoreModule
  ],
  exports: [
    CommonModule,
    RouterModule,
    ReactiveFormsModule,

    AlertModule,
    ModalModule,
    ButtonsModule,
github rucken / core / libs / rucken / web / src / lib / components / entity-grid / entity-grid.module.ts View on Github external
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { TranslateModule } from '@ngx-translate/core';
import { ModalModule } from 'ngx-bootstrap/modal';
import { PaginationModule } from 'ngx-bootstrap/pagination';
import { MessageModalModule } from '../../modals/message-modal/message-modal.module';
import { PipesModule } from '../../pipes/pipes.module';
import { EntityGridComponent } from './entity-grid.component';
@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    PaginationModule.forRoot(),
    TranslateModule.forChild(),
    PipesModule,
    MessageModalModule,
    ModalModule.forRoot(),
    FontAwesomeModule
  ],
  declarations: [EntityGridComponent],
  entryComponents: [EntityGridComponent],
  exports: [
    EntityGridComponent,
    FormsModule,
    ReactiveFormsModule,
    PipesModule,
    MessageModalModule
  ]
})
github Infosys / openIDP / ui / src / main / angular4src / src / app / app.module.ts View on Github external
BrowserAnimationsModule,
        DateTimePickerModule,
        AppAsideModule,
        AppBreadcrumbModule.forRoot(),
        AppFooterModule,
        AppHeaderModule,
        AppSidebarModule,
        PerfectScrollbarModule,
        CookieModule.forRoot(),
        HttpModule,
        Ng2TableModule,
        AngularMultiSelectModule,
        FormsModule,
        CommonModule,
        MomentModule,
        PaginationModule.forRoot(),
        TranslateModule.forRoot(
            {
                loader: {
                    provide: TranslateLoader,
                    useFactory: (createTranslateLoader),
                    deps: [HttpClient]
                }
            }),
        FormsModule,
        CommonModule,
        NgxPaginationModule,
        BsDropdownModule.forRoot(),
        CollapseModule.forRoot(),
        ModalModule.forRoot(),
        TabsModule.forRoot(),
github surmon-china / angular-admin / src / app / pages / demo / ui / ui.module.ts View on Github external
import { RaisedButtonsComponent } from './components/buttons/components/raisedButtons';
import { SizedButtonsComponent } from './components/buttons/components/sizedButtons';
import { DisabledButtonsComponent } from './components/buttons/components/disabledButtons';
import { IconButtonsComponent } from './components/buttons/components/iconButtons';
import { LargeButtonsComponent } from './components/buttons/components/largeButtons';
import { DropdownButtonsComponent } from './components/buttons/components/dropdownButtons';
import { GroupButtonsComponent } from './components/buttons/components/groupButtons';
import { IconsService } from './components/icons/icons.service';

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    SaBaseModule,
    RoutingModule,
    PaginationModule.forRoot(),
    BsDropdownModule.forRoot(),
    ModalModule.forRoot(),
  ],
  declarations: [
    ButtonsComponent,
    GridComponent,
    IconsComponent,
    ModalsComponent,
    TypographyComponent,
    UiComponent,
    FlatButtonsComponent,
    RaisedButtonsComponent,
    SizedButtonsComponent,
    DisabledButtonsComponent,
    IconButtonsComponent,
    LargeButtonsComponent,
github formio / angular-formio / src / modules / grid / index.ts View on Github external
import { NgModule }       from '@angular/core';
import { CommonModule }   from '@angular/common';
import { FormsModule } from '@angular/forms';
import { FormioModule } from '../../index';
import { FormioGridComponent } from './grid.component';
import { PaginationModule } from 'ngx-bootstrap/pagination';
@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        FormioModule,
        PaginationModule.forRoot()
    ],
    declarations: [
        FormioGridComponent
    ],
    exports: [
        FormioGridComponent
    ]
})
export class FormioGrid {}
github wikift / wikift / wikift-web / src / app / pages / article / info / info.article.module.ts View on Github external
{ path: '', component: InfoArticleComponent }
];

@NgModule({
    imports: [
        WikiftEditorModule,
        CommonModule,
        FormsModule,
        SelectModule,
        AngularEchartsModule,
        TooltipModule.forRoot(),
        BsDropdownModule.forRoot(),
        ModalModule.forRoot(),
        ToastyModule.forRoot(),
        PopoverModule.forRoot(),
        PaginationModule.forRoot(),
        Ng2DeviceDetectorModule.forRoot(),
        RouterModule.forChild(INFO_ARTICLE_ROUTES)
    ],
    exports: [],
    declarations: [
        InfoArticleComponent
    ],
    providers: [
        ArticleService,
        UserService,
        CommentService
    ],
})
export class InfoArticleModule { }
github rucken / core / src / grids / groups-grid / groups-grid.module.ts View on Github external
import { ModuleWithProviders, NgModule } from '@angular/core';
import { SharedModule } from '@rucken/core';
import { PaginationModule } from 'ngx-bootstrap/pagination';

import { GridRowButtonsModule } from './../../controls/grid-row-buttons/grid-row-buttons.module';
import { GridSearchPanelModule } from './../../controls/grid-search-panel/grid-search-panel.module';
import { TableColumnModule } from './../../controls/table-column/table-column.module';
import { GroupModalModule } from './../../grids/groups-grid/group-modal/group-modal.module';
import { ConfirmModalModule } from './../../modals/confirm-modal/confirm-modal.module';
import { GroupsGridComponent } from './groups-grid.component';

@NgModule({
  imports: [
    SharedModule.forRoot(), GridSearchPanelModule.forRoot(),
    GroupModalModule.forRoot(), ConfirmModalModule.forRoot(),
    TableColumnModule.forRoot(), GridRowButtonsModule.forRoot(), PaginationModule.forRoot()
  ],
  declarations: [
    GroupsGridComponent
  ],
  exports: [GroupsGridComponent],
  entryComponents: [GroupsGridComponent]
})
export class GroupsGridModule {
  static forRoot(): ModuleWithProviders {
    return {
      ngModule: GroupsGridModule,
      providers: []
    };
  }
}
github valor-software / ngx-bootstrap / src / spec / pager.component.spec.ts View on Github external
beforeEach(() => {
    TestBed.configureTestingModule({
      imports: [PaginationModule.forRoot()]
    });
    fixture = TestBed.createComponent(PagerComponent);
    context = fixture.debugElement.componentInstance;

    element = fixture.nativeElement;
    fixture.detectChanges();
  });
github wikift / wikift / wikift-web / src / app / pages / article / create / create.article.module.ts View on Github external
});
}

@NgModule({
  imports: [
    WikiftEditorModule,
    CommonModule,
    ArchwizardModule,
    FormsModule,
    BusyModule,
    SelectModule,
    ToastyModule.forRoot(),
    ModalModule.forRoot(),
    AlertModule.forRoot(),
    TooltipModule.forRoot(),
    PaginationModule.forRoot(),
    RouterModule.forChild(CREATE_ARTICLE_ROUTES)
  ],
  exports: [],
  declarations: [
    CreateArticleComponent
  ],
  providers: [
    ArticleService,
    ArticleTypeService,
    ArticleTagService,
    SpaceService,
    {
      provide: BusyConfig,
      useFactory: busyConfigFactory
    }
  ],
github rucken / core / src / grids / user-groups-grid / user-groups-grid.module.ts View on Github external
import { SharedModule } from '@rucken/core';
import { PaginationModule } from 'ngx-bootstrap/pagination';

import { GridRowButtonsModule } from './../../controls/grid-row-buttons/grid-row-buttons.module';
import { GridSearchPanelModule } from './../../controls/grid-search-panel/grid-search-panel.module';
import { TableColumnModule } from './../../controls/table-column/table-column.module';
import { GroupModalModule } from './../../grids/groups-grid/group-modal/group-modal.module';
import { GroupsListModalModule } from './../../grids/groups-grid/groups-list-modal/groups-list-modal.module';
import { ConfirmModalModule } from './../../modals/confirm-modal/confirm-modal.module';
import { UserGroupsGridComponent } from './user-groups-grid.component';

@NgModule({
  imports: [
    SharedModule.forRoot(), GridSearchPanelModule.forRoot(),
    GroupsListModalModule.forRoot(), GroupModalModule.forRoot(), ConfirmModalModule.forRoot(),
    TableColumnModule.forRoot(), GridRowButtonsModule.forRoot(), PaginationModule.forRoot()
  ],
  declarations: [
    UserGroupsGridComponent
  ],
  exports: [UserGroupsGridComponent],
  entryComponents: [UserGroupsGridComponent]
})
export class UserGroupsGridModule {
  static forRoot(): ModuleWithProviders {
    return {
      ngModule: UserGroupsGridModule,
      providers: []
    };
  }
}