C# 클래스 Alloy.Helpers.HtmlHelpers

파일 보기 프로젝트 열기: episerver/EPiTranslateFlowDemo

공개 메소드들

메소드 설명
BeginConditionalLink ( this helper, bool shouldWriteLink, Func urlGetter, string title = null, string cssClass = null ) : ConditionalLink

Writes an opening ]]> tag to the response if the shouldWriteLink argument is true. Returns a ConditionalLink object which when disposed will write a closing ]]> tag to the response if the shouldWriteLink argument is true.

Overload which only executes the delegate for retrieving the URL if the link should be written. This may be used to prevent null reference exceptions by adding null checkes to the shouldWriteLink condition.

BeginConditionalLink ( this helper, bool shouldWriteLink, IHtmlString url, string title = null, string cssClass = null ) : ConditionalLink

Writes an opening ]]> tag to the response if the shouldWriteLink argument is true. Returns a ConditionalLink object which when disposed will write a closing ]]> tag to the response if the shouldWriteLink argument is true.

MenuList ( this helper, EPiServer.Core.ContentReference rootLink, HelperResult>.Func itemTemplate = null, bool includeRoot = false, bool requireVisibleInMenu = true, bool requirePageTemplate = true ) : IHtmlString

Returns an element for each child page of the rootLink using the itemTemplate.

Filter by access rights and publication status.

비공개 메소드들

메소드 설명
CreateMenuItem ( System.PageData page, EPiServer.Core.ContentReference currentContentLink, List pagePath, IContentLoader contentLoader, Func filter ) : MenuItem
GetDefaultItemTemplate ( HtmlHelper helper ) : HelperResult>.Func

메소드 상세

BeginConditionalLink() 공개 정적인 메소드

Writes an opening ]]> tag to the response if the shouldWriteLink argument is true. Returns a ConditionalLink object which when disposed will write a closing ]]> tag to the response if the shouldWriteLink argument is true.
Overload which only executes the delegate for retrieving the URL if the link should be written. This may be used to prevent null reference exceptions by adding null checkes to the shouldWriteLink condition.
public static BeginConditionalLink ( this helper, bool shouldWriteLink, Func urlGetter, string title = null, string cssClass = null ) : ConditionalLink
helper this
shouldWriteLink bool
urlGetter Func
title string
cssClass string
리턴 ConditionalLink

BeginConditionalLink() 공개 정적인 메소드

Writes an opening ]]> tag to the response if the shouldWriteLink argument is true. Returns a ConditionalLink object which when disposed will write a closing ]]> tag to the response if the shouldWriteLink argument is true.
public static BeginConditionalLink ( this helper, bool shouldWriteLink, IHtmlString url, string title = null, string cssClass = null ) : ConditionalLink
helper this
shouldWriteLink bool
url IHtmlString
title string
cssClass string
리턴 ConditionalLink

MenuList() 공개 정적인 메소드

Returns an element for each child page of the rootLink using the itemTemplate.
Filter by access rights and publication status.
public static MenuList ( this helper, EPiServer.Core.ContentReference rootLink, HelperResult>.Func itemTemplate = null, bool includeRoot = false, bool requireVisibleInMenu = true, bool requirePageTemplate = true ) : IHtmlString
helper this The html helper in whose context the list should be created
rootLink EPiServer.Core.ContentReference A reference to the root whose children should be listed
itemTemplate HelperResult>.Func A template for each page which will be used to produce the return value. Can be either a delegate or a Razor helper.
includeRoot bool Wether an element for the root page should be returned
requireVisibleInMenu bool Wether pages that do not have the "Display in navigation" checkbox checked should be excluded
requirePageTemplate bool Wether page that do not have a template (i.e. container pages) should be excluded
리턴 IHtmlString