C# Класс OxxCommerceStarterKit.Web.Business.Rendering.ContentAreaWithDefaultsRenderer

Extends the default ContentAreaRenderer to apply custom CSS classes to each ContentFragment.
Наследование: ContentAreaRenderer
Показать файл Открыть проект

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

GetContentAreaItemCssClass() защищенный Метод

protected GetContentAreaItemCssClass ( HtmlHelper htmlHelper, ContentAreaItem contentAreaItem ) : string
htmlHelper HtmlHelper
contentAreaItem ContentAreaItem
Результат string

GetDefaultDisplayOption() защищенный Метод

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
Результат string