C# Class Sakura.AspNetCore.Mvc.TagHelpers.HtmlGeneratorHelper

Helper class for HTML generation. The code in this class are copy from ASP.NET official implementation for DefaultHtmlGenerator.
Mostra file Open project: sgjsakura/AspNetCore Class Usage Examples

Public Methods

Method Description
GenerateGroupsAndOptions ( string optionLabel, IEnumerable selectList ) : IHtmlContent
GenerateOption ( SelectListItem item ) : IHtmlContent
GenerateOption ( SelectListItem item, string text ) : TagBuilder Not used directly in HtmlHelper. Exposed for use in DefaultDisplayTemplates.

Method Details

GenerateGroupsAndOptions() public static method

public static GenerateGroupsAndOptions ( string optionLabel, IEnumerable selectList ) : IHtmlContent
optionLabel string
selectList IEnumerable
return IHtmlContent

GenerateOption() public static method

public static GenerateOption ( SelectListItem item ) : IHtmlContent
item SelectListItem
return IHtmlContent

GenerateOption() public static method

Not used directly in HtmlHelper. Exposed for use in DefaultDisplayTemplates.
public static GenerateOption ( SelectListItem item, string text ) : TagBuilder
item SelectListItem
text string
return TagBuilder