Table of Contents

Class MudPagination

Namespace
MudBlazor
Assembly
MudBlazor.dll
public class MudPagination : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
Inheritance
MudPagination
Implements
Inherited Members
Extension Methods

Constructors

MudPagination()

public MudPagination()

Properties

BeforeIcon

Custom before icon.

[Parameter]
[Category("Appearance")]
public string BeforeIcon { get; set; }

Property Value

string

BoundaryCount

The number of items at the start and end of the pagination.

[Parameter]
[Category("Appearance")]
public int BoundaryCount { get; set; }

Property Value

int

Color

The color of the component. It supports the theme colors.

[Parameter]
[Category("Appearance")]
public Color Color { get; set; }

Property Value

Color

ControlButtonClicked

Invokes the callback when a control button is clicked.

[Parameter]
public EventCallback<Page> ControlButtonClicked { get; set; }

Property Value

EventCallback<Page>

Count

The number of pages.

[Parameter]
[Category("Behavior")]
public int Count { get; set; }

Property Value

int

Disabled

If true, the pagination will be disabled.

[Parameter]
[Category("Behavior")]
public bool Disabled { get; set; }

Property Value

bool

DropShadow

Determines whether the component has a drop-shadow. Default is true

[Parameter]
[Category("Appearance")]
public bool DropShadow { get; set; }

Property Value

bool

FirstIcon

Custom first icon.

[Parameter]
[Category("Appearance")]
public string FirstIcon { get; set; }

Property Value

string

LastIcon

Custom last icon.

[Parameter]
[Category("Appearance")]
public string LastIcon { get; set; }

Property Value

string

MiddleCount

The number of items in the middle of the pagination.

[Parameter]
[Category("Appearance")]
public int MiddleCount { get; set; }

Property Value

int

NextIcon

Custom next icon.

[Parameter]
[Category("Appearance")]
public string NextIcon { get; set; }

Property Value

string

Rectangular

If true, the pagination buttons are displayed rectangular.

[Parameter]
[Category("Appearance")]
public bool Rectangular { get; set; }

Property Value

bool

RightToLeft

[CascadingParameter(Name = "RightToLeft")]
public bool RightToLeft { get; set; }

Property Value

bool

Selected

The selected page number.

[Parameter]
[Category("Behavior")]
public int Selected { get; set; }

Property Value

int

SelectedChanged

Invokes the callback when selected page changes.

[Parameter]
public EventCallback<int> SelectedChanged { get; set; }

Property Value

EventCallback<int>

ShowFirstButton

If true, the navigate-to-first-page button is shown.

[Parameter]
[Category("Behavior")]
public bool ShowFirstButton { get; set; }

Property Value

bool

ShowLastButton

If true, the navigate-to-last-page button is shown.

[Parameter]
[Category("Behavior")]
public bool ShowLastButton { get; set; }

Property Value

bool

ShowNextButton

If true, the navigate-to-next-page button is shown.

[Parameter]
[Category("Behavior")]
public bool ShowNextButton { get; set; }

Property Value

bool

ShowPageButtons

If true, the page buttons are shown.

[Parameter]
[Category("Behavior")]
public bool ShowPageButtons { get; set; }

Property Value

bool

ShowPreviousButton

If true, the navigate-to-previous-page button is shown.

[Parameter]
[Category("Behavior")]
public bool ShowPreviousButton { get; set; }

Property Value

bool

Size

The size of the component..

[Parameter]
[Category("Appearance")]
public Size Size { get; set; }

Property Value

Size

Variant

The variant to use.

[Parameter]
[Category("Appearance")]
public Variant Variant { get; set; }

Property Value

Variant

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

NavigateTo(Page)

Navigates to the specified page.

public void NavigateTo(Page page)

Parameters

page Page

The target page. page=Page.Next navigates to the next page.

NavigateTo(int)

Navigates to the specified page.

public void NavigateTo(int pageIndex)

Parameters

pageIndex int