packages/ui/src/lib/list/pagination/pagination-config.interface.ts
Configuration for a pagination component
Properties |
constructor(config: PaginationConfig)
|
||||||
The constructor assigns the config
Parameters :
|
hideFirstLast |
Type : boolean
|
Hides first and last Link |
hidePages |
Type : boolean
|
Hides pages |
range |
Type : number
|
Default value : 2
|
Range of displayed pages in the UI. Controls the number of pages before and after the current page. Defaults to 3.
NOTE: For a smoother UX, there are minimum |
import { SymbolService } from '../../symbol/symbol.service';
/** Configuration for a pagination component */
export class PaginationConfig {
/** Range of displayed pages in the UI. Controls the number of pages before and after the current page. Defaults to 3.
* NOTE: For a smoother UX, there are minimum ```2 * range + 1``` pages visible.*/
range = 2;
/** Hides first and last Link */
hideFirstLast: boolean;
/** Hides pages */
hidePages: boolean;
/** The constructor assigns the config */
constructor(config: PaginationConfig) {
Object.assign(this, config);
}
}