LMB.HtmlHelperExtensions 1.0.1

This extension provides two new HTML helpers: Html.Button() to render an HTML button element with an _Icon Font_ inside and Html.LinkButton() to render an HTML link element with an _Icon Font_ inside that will be rendered like a button.

Install-Package LMB.HtmlHelperExtensions -Version 1.0.1
dotnet add package LMB.HtmlHelperExtensions --version 1.0.1
<PackageReference Include="LMB.HtmlHelperExtensions" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LMB.HtmlHelperExtensions --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

HTML Helper Extensions

Donate

To make it easier to add content to a view, you can take advantage of something called an HTML Helper.
An HTML Helper, typically, is a method that generates a string.
You can use HTML Helpers to generate standard HTML elements such as textboxes, links, dropdown lists, and list boxes.

All of the HTML Helpers methods are called on the Html property of the view.
For example, you render a TextBox by calling the Html.TextBox() method.

Using HTML Helper methods is optional.
They make your life easier by reducing the amount of HTML and script that you need to write.

How it works?

The ASP.NET MVC framework includes a useful utility class named the TagBuilder class that you can use when building HTML helpers.
The TagBuilder class, as the name of the class suggests, enables you to easily build HTML tags.

This extension provides two new HTML helpers:

  • Html.Button() to render an HTML button element with an Icon Font inside.
  • Html.LinkButton() to render an HTML link element (using the a href tag) with an Icon Font inside that will be rendered like a button.

How to use this extension?

To a complete documentation please see the GitHub project page

Where to get this extension?

You can install this extension direct from:

Nuget

Or instal with Package Manager Console

Install-Package LMB.HtmlHelperExtensions

Or you can download this github project and copy the HtmlHelperExtensions.cs file direct into your project.

Donations

If you enjoy this work, please consider supporting me for developing and maintaining this (and others) templates.

paypal

HTML Helper Extensions

Donate

To make it easier to add content to a view, you can take advantage of something called an HTML Helper.
An HTML Helper, typically, is a method that generates a string.
You can use HTML Helpers to generate standard HTML elements such as textboxes, links, dropdown lists, and list boxes.

All of the HTML Helpers methods are called on the Html property of the view.
For example, you render a TextBox by calling the Html.TextBox() method.

Using HTML Helper methods is optional.
They make your life easier by reducing the amount of HTML and script that you need to write.

How it works?

The ASP.NET MVC framework includes a useful utility class named the TagBuilder class that you can use when building HTML helpers.
The TagBuilder class, as the name of the class suggests, enables you to easily build HTML tags.

This extension provides two new HTML helpers:

  • Html.Button() to render an HTML button element with an Icon Font inside.
  • Html.LinkButton() to render an HTML link element (using the a href tag) with an Icon Font inside that will be rendered like a button.

How to use this extension?

To a complete documentation please see the GitHub project page

Where to get this extension?

You can install this extension direct from:

Nuget

Or instal with Package Manager Console

Install-Package LMB.HtmlHelperExtensions

Or you can download this github project and copy the HtmlHelperExtensions.cs file direct into your project.

Donations

If you enjoy this work, please consider supporting me for developing and maintaining this (and others) templates.

paypal

Release Notes

Added Frameworks 4.6 and 4.6.1

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 1,322 11/3/2017
1.0.0 285 11/1/2017