Class MudTablePager
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
A component which changes pages and page size for a MudTable<T>.
public class MudTablePager : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
- Inheritance
-
MudTablePager
- Implements
- Inherited Members
- Extension Methods
Constructors
MudTablePager()
public MudTablePager()
Properties
AllItemsText
The text displayed in the page-size dropdown when PageSizeOptions contains MaxValue.
[Parameter]
public string AllItemsText { get; set; }
Property Value
BeforeIcon
The icon for the "Previous Page" button.
[Parameter]
public string BeforeIcon { get; set; }
Property Value
Remarks
Defaults to NavigateBefore.
Classname
protected string Classname { get; }
Property Value
Context
The current state of the MudTable<T> containing this pager.
[CascadingParameter]
public TableContext? Context { get; set; }
Property Value
FirstIcon
The icon for the "First Page" button.
[Parameter]
public string FirstIcon { get; set; }
Property Value
Remarks
Defaults to FirstPage.
HidePageNumber
Hides the current page number.
[Parameter]
public bool HidePageNumber { get; set; }
Property Value
Remarks
Defaults to false
.
HidePagination
Hides the list of page numbers.
[Parameter]
public bool HidePagination { get; set; }
Property Value
Remarks
Defaults to false
.
HideRowsPerPage
Hides the list of page sizes.
[Parameter]
public bool HideRowsPerPage { get; set; }
Property Value
Remarks
Defaults to false
.
HorizontalAlignment
The location of this pager relative to the parent MudTable<T>.
[Parameter]
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
Remarks
Defaults to Right.
InfoFormat
The format of the text label.
[Parameter]
public string InfoFormat { get; set; }
Property Value
Remarks
Defaults to "{first_item}-{last_item} of {all_items}"
(e.g. 0-25 of 77
). You can use any of the following values:
{first_item}
: The index of the first row being displayed.{last_item}
: The index of the last row being displayed.{all_items}
: The total number of rows in all pages.
LastIcon
The icon for the "Last Page" button.
[Parameter]
public string LastIcon { get; set; }
Property Value
Remarks
Defaults to LastPage.
NextIcon
The icon for the "Next Page" button.
[Parameter]
public string NextIcon { get; set; }
Property Value
Remarks
Defaults to NavigateNext.
PageSizeOptions
The list of page sizes.
[Parameter]
public int[] PageSizeOptions { get; set; }
Property Value
- int[]
Remarks
Defaults to 10
, 25
, 50
, and 100
. Requires HideRowsPerPage to be false
.
PaginationClassname
protected string PaginationClassname { get; }
Property Value
RightToLeft
[CascadingParameter(Name = "RightToLeft")]
public bool RightToLeft { get; set; }
Property Value
RowsPerPageString
The text label for the current rows per page.
[Parameter]
public string RowsPerPageString { get; set; }
Property Value
Table
The MudTable<T> linked to this pager.
public MudTableBase? Table { get; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
OnInitialized()
protected override void OnInitialized()
OnParametersSet()
protected override void OnParametersSet()