Table of Contents

Class TwPagination

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll
public class TwPagination : TwBlazorComponentBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent
Inheritance
TwPagination
Implements
Inherited Members

Constructors

TwPagination()

public TwPagination()

Properties

ActivePage

Gets and sets the current active page.

[Parameter]
public int ActivePage { get; set; }

Property Value

int

ActivePageChanged

The bound event callback when the active page is changed.

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

Property Value

EventCallback<int>

Dense

Whether to render smaller, more compact buttons.

[Parameter]
public bool Dense { get; set; }

Property Value

bool

PageSize

The number of items displayed per page. Only used when ShowPageSize is true.

[Parameter]
public int PageSize { get; set; }

Property Value

int

PageSizeChanged

The bound event callback when the page size is changed e.g. from displaying 5 per page to 10 etc.

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

Property Value

EventCallback<int>

PageSizeOptions

The selectable options for PageSize.

[Parameter]
public int[] PageSizeOptions { get; set; }

Property Value

int[]

ShowPageSize

Whether to show an optional "items per page" dropdown alongside the pagination controls.

[Parameter]
public bool ShowPageSize { get; set; }

Property Value

bool

TotalPages

The total count of pages displayed.

[Parameter]
public int TotalPages { get; set; }

Property Value

int

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder