C# Класс Sakura.AspNetCore.Mvc.TagHelpers.PagerTagHelper

Наследование: Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CheckOptions void
GetPagingInfo void
GetRealGenerator IPagerGenerator
GetRealOptions PagerOptions
MergeShortcutProperties PagerOptions

Открытые методы

Метод Описание
PagerTagHelper ( IOptions defaultOptions ) : System

Initialize a new instance of PagerTagHelper.

Process ( Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output ) : void

Synchronously executes the TagHelper with the given context and output.

Приватные методы

Метод Описание
CheckOptions ( [ options ) : void

Handle the options to avoid it is in an invalid state.

GetPagingInfo ( Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, int &currentPage, int &totalPage ) : void

Try to get the page information from the current context.

GetRealGenerator ( Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context ) : IPagerGenerator

Get the real IPagerGenerator used in this tag helper/

GetRealOptions ( Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context ) : PagerOptions

Get the real PagerOptions used in this tag helper/

MergeShortcutProperties ( PagerOptions original, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context ) : PagerOptions

Merge options set by the tag into the original options.

Описание методов

PagerTagHelper() публичный Метод

Initialize a new instance of PagerTagHelper.
public PagerTagHelper ( IOptions defaultOptions ) : System
defaultOptions IOptions Registered default options value.
Результат System

Process() публичный Метод

Synchronously executes the TagHelper with the given context and output.
public Process ( Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output ) : void
context Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext Contains information associated with the current HTML tag.
output Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput A stateful HTML element used to generate an HTML tag.
Результат void