dsfr4drupal-1.x-dev/components/pagination/pagination.component.yml

components/pagination/pagination.component.yml
name: DSFR - Pagination
description: Pagination allows the user to navigate between different pages of a list of items.
status: stable
group: DSFR
props:
  properties:
    aria_label:
      type: string
      title: Pagination "aria-label" attribute
      description: 'By default: "Pagination", or the translated string in another language.'
    attributes:
      type: Drupal\Core\Template\Attribute
      title: Attributes
    current:
        type: integer
        title: Current page
        description: 'The current page number'
    first_label:
      type: string
      title: First page item label
      description: 'By default: "First page", or the translated string in another language.'
    first_last_displayed_lg:
      type: boolean
      title: 'Show the "First page" and "Last page" buttons from the LG breakpoint?'
      default: false
    ellipses:
      type: object
      title: Ellipses
      properties:
        previous:
          type: boolean
          title: Add ellipses after previous page item?
        next:
          type: boolean
          title: Add ellipses after next page item?
    items:
      type: object
      title: Items
      description: Drupal pager items.
    last_label:
      type: string
      title: Last page item label
      description: 'By default: "Last page", or the translated string in another language.'
    next_label:
      type: string
      title: Next page item label
      description: 'By default: "Next page", or the translated string in another language.'
    previous_label:
      type: string
      title: Previous page item label
      description: 'By default: "Previous page", or the translated string in another language.'
    previous_next_displayed_lg:
      type: boolean
      title: 'Show the "Previous page" and "Next page" buttons from the LG breakpoint.'
      default: false
    previous_next_has_lg_label:
      type: boolean
      title: 'Display the labels of the "Previous page" and "Next page" buttons from the LG breakpoint?'
      default: true
  required:
    - current
    - items
libraryOverrides:
  dependencies:
    - dsfr4drupal/component.pagination

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc