File

packages/ui/src/lib/list/pagination/pagination-config.interface.ts

Description

Configuration for a pagination component

Index

Properties

Constructor

constructor(config: PaginationConfig)

The constructor assigns the config

Parameters :
Name Type Optional
config PaginationConfig No

Properties

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 2 * range + 1 pages visible.

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);
  }
}

result-matching ""

    No results matching ""