|
|
|
@ -10,34 +10,99 @@
|
|
|
|
|
</abp-style-bundle>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<h2>Paginator</h2>
|
|
|
|
|
@section scripts {
|
|
|
|
|
<abp-script-bundle>
|
|
|
|
|
@*<abp-script src="/libs/highlight.js/lib/highlight.js" />
|
|
|
|
|
<abp-script src="/Pages/Components/highlightCode.js" />*@
|
|
|
|
|
</abp-script-bundle>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<h4># Paginator Examples</h4>
|
|
|
|
|
<link rel="stylesheet"
|
|
|
|
|
href="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/default.min.css">
|
|
|
|
|
<script src="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/highlight.min.js"></script>
|
|
|
|
|
<script>hljs.initHighlightingOnLoad();</script>
|
|
|
|
|
|
|
|
|
|
<div class="demo-with-code">
|
|
|
|
|
<div class="demo-area">
|
|
|
|
|
|
|
|
|
|
<abp-paginator model="@Model.PagerModel" />
|
|
|
|
|
<h2>Paginator</h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h4>Example</h4>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="code-area">
|
|
|
|
|
<pre>
|
|
|
|
|
<abp-paginator model="Model.PagerModel"/>
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
<div class="demo-with-code">
|
|
|
|
|
<div class="demo-area">
|
|
|
|
|
|
|
|
|
|
<abp-paginator model="@Model.PagerModel" show-info="true" />
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="code-area">
|
|
|
|
|
<pre>
|
|
|
|
|
<abp-paginator model="Model.PagerModel" show-info="true"/>
|
|
|
|
|
</pre>
|
|
|
|
|
<abp-tabs>
|
|
|
|
|
<abp-tab title="Modal Class">
|
|
|
|
|
<pre><code>
|
|
|
|
|
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(100, 10, currentPage, 10, "Paginator", sort);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
<abp-tab title="Tag Helper" active="true">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<abp-paginator model="Model.PagerModel" show-info="true" />
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
<abp-tab title="Rendered">
|
|
|
|
|
<pre><code>
|
|
|
|
|
<div class="row mt-3">
|
|
|
|
|
<div class="col-sm-12 col-md-5">
|
|
|
|
|
Showing 80 to 90 of 100 entries.
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-12 col-md-7">
|
|
|
|
|
<nav aria-label="Page navigation">
|
|
|
|
|
<ul class="pagination justify-localizationKey-end">
|
|
|
|
|
<li class="page-item ">
|
|
|
|
|
<a tabindex="-1" class="page-link" href="/Components/Paginator?currentPage=7">Previous</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="page-item ">
|
|
|
|
|
<a tabindex="-1" class="page-link" href="/Components/Paginator?currentPage=1">1</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="page-item ">
|
|
|
|
|
<a tabindex="-1" class="page-link" href="/Components/Paginator?currentPage=2">2</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="page-item ">
|
|
|
|
|
<span class="page-link gap">…</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="page-item ">
|
|
|
|
|
<a tabindex="-1" class="page-link" href="/Components/Paginator?currentPage=7">7</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="page-item active">
|
|
|
|
|
<span class="page-link">
|
|
|
|
|
8
|
|
|
|
|
<span class="sr-only">(current)</span>
|
|
|
|
|
</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="page-item ">
|
|
|
|
|
<a tabindex="-1" class="page-link" href="/Components/Paginator?currentPage=9">9</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="page-item ">
|
|
|
|
|
<a tabindex="-1" class="page-link" href="/Components/Paginator?currentPage=10">10</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="page-item ">
|
|
|
|
|
<a tabindex="-1" class="page-link" href="/Components/Paginator?currentPage=9">Next</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<!-- nav-->
|
|
|
|
|
</nav></div>
|
|
|
|
|
</div>
|
|
|
|
|
</code></pre>
|
|
|
|
|
</abp-tab>
|
|
|
|
|
</abp-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|