Nucleus .Net Core CMS

Controls.PagingControl Class

Namespace: Nucleus.ViewFeatures.Controls
Assembly: Nucleus.ViewFeatures.dll
Represents a view component for rendering a paging control in Razor views.
The Controls.PagingControl is a view component that provides a UI for paging through data sets. It should not be instantiated directly. Instead, use Component.InvokeAsync to render the control in a Razor view. The control accepts a Models.Paging.PagingSettings model, a property name, and an optional render mode.
@await Component.InvokeAsync(typeof(Nucleus.ViewFeatures.Controls.PagingControl), new { model = @Model.ApiKeys, propertyName = "ApiKeys", renderMode = Nucleus.ViewFeatures.ViewModels.PagingControl.RenderModes.Compact })
PagingControl (Context Context)
Initializes a new instance of the Controls.PagingControl class using dependency injection.
Parameters
Name Type
Context Nucleus.Abstractions.Models.Context

The current Nucleus P:Nucleus.ViewFeatures.Controls.PagingControl.Context.

Invoke (PagingSettings model, String propertyName, RenderModes renderMode)
Renders the paging control view component.
Parameters
Name Type
model Nucleus.Abstractions.Models.Paging.PagingSettings

The paging settings model containing paging information.

propertyName String

The property name used for model binding and state management.

renderMode Nucleus.ViewFeatures.ViewModels.PagingControl.RenderModes

The render mode for the paging control (default is Standard).

Returns
An Microsoft.AspNetCore.Mvc.IViewComponentResult that renders the paging control.