Socket
Socket
Sign inDemoInstall

pagination-svelte

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pagination-svelte

Pagination component for Svelte.


Version published
Weekly downloads
162
decreased by-41.3%
Maintainers
0
Weekly downloads
 
Created
Source

pagination-svelte

GITHUB VERSION NPM VERSION NPM Downloads NPM License Twitter

Pagination is an excellent method for organizing website content into separate pages so users can find the desired page/content. It is a feature we can use on a blog page, a product page, or any other page with a lot of content that we want to distribute across multiple pages.

pagination-svelte is a light weight svelte component that enables the user to select a specific page from a range of pages.

PAGINATION

VERSIONS

  • VERSION 1.0.0 OR ABOVE WORKS WITH SVELTE 5 ONLY (NEWER AND RECOMMENDED VERSIONS WITH IMPROVEMENTS!)
  • PREVIOUS VERSIONS WORKS WITH SVELTE 3, 4 AND 5.

FEATURES

  • NON-OPINIONATED STYLING.
  • NON-OPINIONATED POSITIONING.
  • TYPESCRIPT SUPPORT.

INSTALLATION

npm install pagination-svelte

DEMO

EXAMPLES AND DEVELOPING

To run the examples from /src/routes:

git clone https://github.com/joaquimnetocel/pagination-svelte.git
cd pagination-svelte
npm install
npm run dev

COMPONENT STRUCTURE

  • PaginationItems: A svelte component for pagination.

PROPS

PROPDESCRIPTIONTYPEREQUIREDDEFAULT
propActivePage (bindable)ACTIVE PAGE.numberNO1
propNumberOfRowsTOTAL NUMBER OF ROWS.numberNO-
propNumberOfRowsPerPageTOTAL NUMBER OF ROWS PER PAGE.numberNO-
propNumberOfPagesTOTAL NUMBER OF PAGES. IF propNumberOfRows AND propNumberOfRowsPerPage ARE INFORMED, THIS PROPERTY WILL NOT BE USED.numberNO1
propTagHTML TAG OF THE PAGINATION ITEM.'span' OR 'div' OR 'li' OR 'button' OR 'a'YES-
propInnerTagHTML TAG INSIDE THE PAGINATION ITEM.'span' OR 'div' OR 'li' OR 'button' OR 'a'NOspan
propPreviousPREVIOUS BUTTON TEXT.stringNO-
propNextNEXT BUTTON TEXT.stringNO-
propShortModeIF IN SHORT MODE, PAGINATION WILL SHOW ONLY FORWARD AND BACKWARD BUTTONS.booleanNOfalse
propShortModeLimitIF THE NUMBER OF PAGES IS GREATER THAN propShortModeLimit THE SHORT MODE IS ACTIVATED.numberNO1000
styleCSS STYLES FOR PAGINATION ITEMS.stringNO-
classCSS CLASSES FOR PAGINATION ITEMS.stringNO-
propDisabledStyleCSS STYLES FOR DISABLED PAGINATION ITEMS.stringNO-
propDisabledClassCSS CLASSES FOR DISABLED PAGINATION ITEMS.stringNO-
propActiveStyleCSS STYLES FOR ACTIVE PAGINATION ITEMS.stringNO-
propActiveClassCSS CLASSES FOR ACTIVE PAGINATION ITEMS.stringNO-
propInnerClassCSS CLASSES FOR THE TAG INSIDE PAGINATION ITEMS.stringNO-
propInnerStyleCSS CLASSES FOR THE TAG INSIDE PAGINATION ITEMS.stringNO-

Keywords

FAQs

Package last updated on 26 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc