ant-design-blazor/components/pagination/Pagination.razor
James Yeung 538568c801 feat: add component pagination (#130)
* feat: add pagination basic

* feat: add demos for pagination

* fix: resources
2020-05-19 17:54:16 +08:00

32 lines
1.0 KiB
Plaintext

@namespace AntBlazor
@inherits AntDomComponentBase
<CascadingValue Value="this">
<ul class="@ClassMapper.Class" style="@Style" @ref="Ref" id="@Id">
@if (Simple)
{
<PaginationSimple
Disabled="Disabled"
PageSize="PageSize"
Total="Total"
PageIndex="PageIndex"
PageIndexChange="OnPageIndexChange"
/>
}
else
{
<PaginationDefault
Size="@Size"
Disabled="Disabled"
ShowSizeChanger="ShowSizeChanger"
ShowQuickJumper="ShowQuickJumper"
Total="Total"
PageIndex="PageIndex"
PageSize="PageSize"
PageSizeOptions="PageSizeOptions"
PageIndexChange="OnPageIndexChange"
PageSizeChange="OnPageSizeChange"
/>
}
</ul>
</CascadingValue>