Code Monkey home page Code Monkey logo

codehaks.pagination's Introduction

Codehaks.Pagination

alt text

Setup

Use nuget to download and install package :

PM> Install-Package Codehaks.Pagination -Version 1.0.0

Intoduction

This is a very simple easy to use pagination Tag Helper for ASP.NET Core.

Requirements :

  • ASP.NET Core 1.0,1.1,2.0,2.1,2.2 or higher
  • Bootstrap 4.0

Instalation

install using nuget :

PM > Install-Package Codehaks.Pagination -Version 1.0.0

also you need to reference Codehaks.TagHelpers in you view or _viewImports.cshtml

@addTagHelper *, Codehaks.Pagination

you can download sample project to see it in action: Demo project

Usage

on your view (razor page or MVC) add tag:

<Pagination page-count="@Model.TotalPages" page-target="/index" page-number="@Model.PageNumber" page-range="10"></Pagination>
  • page-count is the number of pages in your list which should be provided from your server-side code.
  • page-target is the path to send/get next page.
  • page-range is the range of pagination buttons to be generated.
  • page-first to rename the title of "First" button to other languages like "اول"
  • page-last to rename the title of "Last" button to other languages like "آخر"

Bugs & Issues

please report any bugs or issues you encounter.

codehaks.pagination's People

Contributors

codehaks avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.