mirror of https://github.com/abpframework/abp.git
7 changed files with 1619 additions and 12 deletions
File diff suppressed because it is too large
@ -0,0 +1,22 @@ |
|||
@page |
|||
@model Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo.Pages.Components.PaginatorModel |
|||
@{ |
|||
ViewData["Title"] = "Paginator"; |
|||
} |
|||
|
|||
<h2>Paginator</h2> |
|||
|
|||
<h4># Paginator Examples</h4> |
|||
|
|||
<div class="demo-with-code"> |
|||
<div class="demo-area"> |
|||
|
|||
<abp-paginator model="@Model.PagerModel" show-info="true"></abp-paginator> |
|||
|
|||
</div> |
|||
<div class="code-area"> |
|||
<pre> |
|||
|
|||
</pre> |
|||
</div> |
|||
</div> |
|||
@ -0,0 +1,26 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Microsoft.AspNetCore.Mvc.RazorPages; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Pagination; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo.Pages.Components |
|||
{ |
|||
public class PaginatorModel : PageModel |
|||
{ |
|||
public PagerModel PagerModel { get; set; } |
|||
|
|||
public void OnGet(int currentPage, string sort) |
|||
{ |
|||
PagerModel = new PagerModel(totalCount: 100, |
|||
shownItemsCount: 10, |
|||
currentPage: currentPage, |
|||
pageSize: 10, |
|||
pageUrl: "Paginator", |
|||
sort: sort |
|||
); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue