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.
Afficher le fichier Open project: sgjsakura/AspNetCore Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public static GenerateGroupsAndOptions ( string optionLabel, IEnumerable selectList ) : IHtmlContent
optionLabel string
selectList IEnumerable
Résultat IHtmlContent

GenerateOption() public static méthode

public static GenerateOption ( SelectListItem item ) : IHtmlContent
item SelectListItem
Résultat IHtmlContent

GenerateOption() public static méthode

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