Socket
Socket
Sign inDemoInstall

onedionys-pagination-component

Package Overview
Dependencies
132
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    onedionys-pagination-component

One Dionys (Pagination Component) - A component to divide content into multiple pages, making it easier for users to navigate.


Version published
Weekly downloads
1
decreased by-90.91%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

Welcome to One Dionys - Pagination Component! 👋

A component to divide content into multiple pages, making it easier for users to navigate. 💖

💾 Requirements

  • Web Browser - Can be used as an emulator to build applications. Example [Chrome, Firefox, Safari & Opera].
  • Internet - Because many use CDN and to make it easier to find solutions to all problems.

🎯 How To Use

Example Syntax
const generatePagination = require('pagination-component');

const currentPage = 5;
const totalPages = 10;
const visiblePages = 5;

const pagination = generatePagination(currentPage, totalPages, visiblePages);
console.log(pagination); // Output: [3, 4, 5, 6, 7]
Explanation

The generatePagination function takes three parameters:

  • currentPage: The current page number.
  • totalPages: The total number of pages.
  • visiblePages: The number of visible page links. It returns an array of page numbers to be displayed based on the current page, total pages, and visible pages.
Return Value
  • The function returns an array of page numbers to be displayed.

📆 Release Date

  • v1.0.0 : 07 March 2024
  • v1.0.1 : 11 March 2024
  • v4.0.0 : 11 March 2024
  • v4.0.1 : 13 March 2024
  • v4.0.2 : 18 March 2024
  • v5.0.0 : 31 March 2024

🧑 Author

  • Facebook : Oned Ionys
  • Instagram : @onedionys
  • Twitter : @onedionys
  • LinkedIn : @onedionys

📝 License

  • Copyright © 2024 One Dionys
  • One Dionys - Pagination Component is an open source project licensed under the MIT license

☕️ Suppport & Donation

Love One Dionys - Pagination Component? Support this project by donating or sharing with others in need.

Made with ❤️ One Dionys

Keywords

FAQs

Last updated on 31 Mar 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc