C# Class OxxCommerceStarterKit.Web.Business.Rendering.ContentAreaWithDefaultsRenderer

Extends the default ContentAreaRenderer to apply custom CSS classes to each ContentFragment.
Inheritance: ContentAreaRenderer
Afficher le fichier Open project: episerver/Commerce-Demo-Kit

Méthodes protégées

Méthode Description
GetContentAreaItemCssClass ( HtmlHelper htmlHelper, ContentAreaItem contentAreaItem ) : string
GetDefaultDisplayOption ( IContent content ) : string

Checks each content item to see if it supports a default tag to use as size if the editor has not specified a default size.

Private Methods

Méthode Description
GetCssClassForTag ( string tagName ) : string

Gets a CSS class used for styling based on a tag name (ie a Bootstrap class name)

GetTypeSpecificCssClasses ( IContent content ) : string

Method Details

GetContentAreaItemCssClass() protected méthode

protected GetContentAreaItemCssClass ( HtmlHelper htmlHelper, ContentAreaItem contentAreaItem ) : string
htmlHelper HtmlHelper
contentAreaItem ContentAreaItem
Résultat string

GetDefaultDisplayOption() protected méthode

Checks each content item to see if it supports a default tag to use as size if the editor has not specified a default size.
protected GetDefaultDisplayOption ( IContent content ) : string
content IContent
Résultat string