Revel
GitHub
GitHub
  • Overview

    • Getting started
    • FAQ
    • Release notes
  • Foundations

    • Meet the standard
    • Accessibility
    • Internationalization
    • Information hierarchy
    • Speed
  • Design

    • Visual principles
    • Colors
    • Space
    • Icons
    • Typography
  • Design tokens
  • Style helpers
  • Content

    • Express your ideas
    • Actionable language
    • Inclusive and accessible language
    • Alternative text
    • Grammar and mechanics
      • Basics
      • Capitalization
      • Dates and units of measurement
      • Punctuation
  • Components

    • Alert
    • Avatar
    • Badge
    • Button
    • Button group
    • Checkbox
    • Date Input
      • dates
      • datetimes
      • ranges
    • Field group
    • File upload
    • Flex
    • Grid
    • Icon
    • Image
    • Input
    • Loader
    • Modal
    • Month picker
    • Pagination
    • Popper
    • Radio
    • Repeater
    • Select
    • Tabs
    • Tile
    • Toast
    • Toggle
  • Directives

    • Click outside
    • Tooltip

Pagination

The r-pagination component is used for navigating through table items, offering seamless page transitions to enhance user interaction.

Usage

import { RPagination } from '@rebilly/revel';

<r-pagination
      :provider="provider"
      :total="total"
      :totalVisible="totalVisible"
      :limit="limit"
      v-model="page"
      @update:model-value="onUpdate"/>

Example

pagination.vue

API

Props

NameTypeDefaultDescription
providerTSFunctionType

Wrapper for async pagination data provider

totalnumber

Number of items handled by pagination in total

limitnumber

Number of items displayed on a single page

totalVisiblenumber99999

Maximum number of displayed pages on screen, other pages will be hidden by …

modelValuenumber1

Number of current active page

Slots

NameDescription
pagination

Pagination component

Events

NameDescription
update:modelValue
Edit this page
Last Updated: 7/29/24, 4:07 PM
Contributors: Dasha Baklanova, John Hannagan, Weetbix, Cesar Level
Prev
Month picker
Next
Popper