Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

feat: carding internal implementation #8

Merged
merged 1 commit into from
Jun 13, 2019

Conversation

ulivz
Copy link
Member

@ulivz ulivz commented Jun 13, 2019

This pull request focus on the internal pagination.

Features

/**
 * Pagination config options for users.
 */
export interface PaginationConfig {
  /**
   * Filter for matched pages.
   */
  filter?: PageFilter;
  /**
   * Sorter for matched pages.
   */
  sorter?: PageSorter;
  /**
   * Maximum number of posts per page.
   */
  lengthPerPage?: number;
  /**
   * Layout for pagination Page (Except the index page.)
   */
  layout?: string;
  /**
   * A function to get the url of pagination page dynamically.
   */
  getPaginationPageUrl?: GetPaginationPageUrl;
  /**
   * A function to get the title of pagination page dynamically.
   */
  getPaginationPageTitle?: getPaginationPageTitle;
}

Out-of-box pagination component

image

Breaking Changes:

Rename 'pagination.perPagePosts' to 'pagination.lengthPerPage'

Breaking Changes:

Rename 'pagination.perPagePosts' to 'pagination.lengthPerPage'
@ulivz ulivz merged commit b249e86 into master Jun 13, 2019
@billyyyyy3320 billyyyyy3320 deleted the feat/carding-internal-implementation branch September 28, 2019 03:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant