C# 클래스 Sakura.AspNetCore.Mvc.TagHelpers.HtmlGeneratorHelper

Helper class for HTML generation. The code in this class are copy from ASP.NET official implementation for DefaultHtmlGenerator.
파일 보기 프로젝트 열기: sgjsakura/AspNetCore 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

GenerateGroupsAndOptions() 공개 정적인 메소드

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

GenerateOption() 공개 정적인 메소드

public static GenerateOption ( SelectListItem item ) : IHtmlContent
item SelectListItem
리턴 IHtmlContent

GenerateOption() 공개 정적인 메소드

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