meta info

LazZiya.TagHelpers

By Ziya Mollamahmut

What is it?

A collection of useful TagHelpers for any ASP.NET Core project.

Installation :

Install via nuget package manager:

Install-Package LazZiya.TagHelpers

Then add to _ViewImports.cshtml:

@addTagHelper *, LazZiya.TagHelpers

Contents

  • Paging TagHelper
  • Alert TagHelper
  • LanguageNav TagHelper
  • Localization Validation Scripts TagHelper

Paging TagHelper

Create a pagination control styled with bootstrap 4.x using simple html tag.

<paging page-no="Model.PageNo" 
        page-size="Model.PageSize"
        total-records="Model.TotalRecords">
</paging>

PagingTagHelper default

Alert TagHelper

Create bootstrap alerts using very simple html tag.

<alert-success>
    My alert text ...
</alert>

AlertTagHelper - success

Language Navigation TagHelper

Create a language dropdown navigation for websites. Supported cultures will be used to create the navigation items.

<language-nav flags="true"></language-nav>

LanguageNavTagHelper with flags

Localization Validation Scripts TagHelper

Add all client side scripts that are required for validating localized inputs like decimal numbers, dates, ..etc.

<localization-validation-scripts></localization-validation-scripts>

Localization number es

Live demos:

http://demo.ziyad.info/en/