1.0.1 • Published 3 years ago

ng-laravel-pagination v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Build Status npm Downloads

Ng Laravel Pagination

A Angular pagination component for Laravel paginator that works with Bootstrap.

Install

npm install ng-laravel-pagination

Usage

Import Library in .module.ts:

import {NgLaravelPaginationModule} from 'ng-laravel-pagination';

@NgModule({
    ...
    imports: [
        ...
        NgLaravelPaginationModule
    ],
    ...
})

Use the component:

<ng-laravel-pagination [data]="laravelData" align="right" [pageDesc]="true" (changePage)="changePage($event)"></ng-laravel-pagination>

Callback Events

changePage(pagination): void {
    console.log(pagination);
}

API

Props

NameTypeDefaultDescription
dataObjectAn object containing the structure of a Laravel paginator response or a Laravel API Resource response.
alignStringrightDefine the alignment of the pagination content.
pageDescBooleantrueHide/Show Pagination description
themeStringtheme-defaultTheme values are theme-default theme-round theme-non-button

Events

NameDescription
changePageTriggered when a user changes page. Passes the new pagination object as a parameter.

License

Released under the MIT License, see LICENSE.

1.0.1

3 years ago

1.0.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.4

3 years ago

0.0.1

3 years ago