View Source
Class BlockGridTemplateExtensions
Assembly: Umbraco.Web.Common.dll
Syntax
public static class BlockGridTemplateExtensions
Fields
View Source
DefaultFolder
Declaration
public const string DefaultFolder = "blockgrid/"
Field Value
View Source
DefaultItemAreaTemplate
Declaration
public const string DefaultItemAreaTemplate = "area"
Field Value
View Source
DefaultItemAreasTemplate
Declaration
public const string DefaultItemAreasTemplate = "areas"
Field Value
View Source
DefaultItemsTemplate
Declaration
public const string DefaultItemsTemplate = "items"
Field Value
View Source
DefaultTemplate
Declaration
public const string DefaultTemplate = "default"
Field Value
Methods
View Source
GetBlockGridHtml(IHtmlHelper, BlockGridModel?, string)
Renders a block grid model into a grid layout
Declaration
public static IHtmlContent GetBlockGridHtml(this IHtmlHelper html, BlockGridModel? model, string template = "default")
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| BlockGridModel |
model |
|
| string |
template |
|
Returns
| Type |
Description |
| IHtmlContent |
|
View Source
GetBlockGridHtml(IHtmlHelper, IPublishedContent, string)
Renders a block grid model into a grid layout
Declaration
public static IHtmlContent GetBlockGridHtml(this IHtmlHelper html, IPublishedContent contentItem, string propertyAlias)
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| IPublishedContent |
contentItem |
|
| string |
propertyAlias |
|
Returns
| Type |
Description |
| IHtmlContent |
|
View Source
GetBlockGridHtml(IHtmlHelper, IPublishedContent, string, string)
Declaration
public static IHtmlContent GetBlockGridHtml(this IHtmlHelper html, IPublishedContent contentItem, string propertyAlias, string template)
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| IPublishedContent |
contentItem |
|
| string |
propertyAlias |
|
| string |
template |
|
Returns
| Type |
Description |
| IHtmlContent |
|
View Source
GetBlockGridHtml(IHtmlHelper, IPublishedProperty, string)
Renders a block grid model into a grid layout
Declaration
public static IHtmlContent GetBlockGridHtml(this IHtmlHelper html, IPublishedProperty property, string template = "default")
Parameters
Returns
| Type |
Description |
| IHtmlContent |
|
View Source
GetBlockGridHtmlAsync(IHtmlHelper, BlockGridModel?, string)
Renders a block grid model into a grid layout
Declaration
public static Task<IHtmlContent> GetBlockGridHtmlAsync(this IHtmlHelper html, BlockGridModel? model, string template = "default")
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| BlockGridModel |
model |
|
| string |
template |
|
Returns
| Type |
Description |
| Task<IHtmlContent> |
|
View Source
GetBlockGridHtmlAsync(IHtmlHelper, IPublishedContent, string)
Renders a block grid model into a grid layout
Declaration
public static Task<IHtmlContent> GetBlockGridHtmlAsync(this IHtmlHelper html, IPublishedContent contentItem, string propertyAlias)
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| IPublishedContent |
contentItem |
|
| string |
propertyAlias |
|
Returns
| Type |
Description |
| Task<IHtmlContent> |
|
View Source
GetBlockGridHtmlAsync(IHtmlHelper, IPublishedContent, string, string)
Declaration
public static Task<IHtmlContent> GetBlockGridHtmlAsync(this IHtmlHelper html, IPublishedContent contentItem, string propertyAlias, string template)
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| IPublishedContent |
contentItem |
|
| string |
propertyAlias |
|
| string |
template |
|
Returns
| Type |
Description |
| Task<IHtmlContent> |
|
View Source
GetBlockGridHtmlAsync(IHtmlHelper, IPublishedProperty, string)
Renders a block grid model into a grid layout
Declaration
public static Task<IHtmlContent> GetBlockGridHtmlAsync(this IHtmlHelper html, IPublishedProperty property, string template = "default")
Parameters
Returns
| Type |
Description |
| Task<IHtmlContent> |
|
View Source
GetBlockGridItemAreaHtml(IHtmlHelper, BlockGridArea, string)
Declaration
public static IHtmlContent GetBlockGridItemAreaHtml(this IHtmlHelper html, BlockGridArea area, string template = "area")
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| BlockGridArea |
area |
|
| string |
template |
|
Returns
| Type |
Description |
| IHtmlContent |
|
View Source
GetBlockGridItemAreaHtml(IHtmlHelper, BlockGridItem, string, string)
Declaration
public static IHtmlContent GetBlockGridItemAreaHtml(this IHtmlHelper html, BlockGridItem item, string areaAlias, string template = "area")
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| BlockGridItem |
item |
|
| string |
areaAlias |
|
| string |
template |
|
Returns
| Type |
Description |
| IHtmlContent |
|
View Source
GetBlockGridItemAreaHtmlAsync(IHtmlHelper, BlockGridArea, string)
Declaration
public static Task<IHtmlContent> GetBlockGridItemAreaHtmlAsync(this IHtmlHelper html, BlockGridArea area, string template = "area")
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| BlockGridArea |
area |
|
| string |
template |
|
Returns
| Type |
Description |
| Task<IHtmlContent> |
|
View Source
GetBlockGridItemAreaHtmlAsync(IHtmlHelper, BlockGridItem, string, string)
Declaration
public static Task<IHtmlContent> GetBlockGridItemAreaHtmlAsync(this IHtmlHelper html, BlockGridItem item, string areaAlias, string template = "area")
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| BlockGridItem |
item |
|
| string |
areaAlias |
|
| string |
template |
|
Returns
| Type |
Description |
| Task<IHtmlContent> |
|
View Source
GetBlockGridItemAreasHtml(IHtmlHelper, BlockGridItem, string)
Declaration
public static IHtmlContent GetBlockGridItemAreasHtml(this IHtmlHelper html, BlockGridItem item, string template = "areas")
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| BlockGridItem |
item |
|
| string |
template |
|
Returns
| Type |
Description |
| IHtmlContent |
|
View Source
GetBlockGridItemAreasHtmlAsync(IHtmlHelper, BlockGridItem, string)
Declaration
public static Task<IHtmlContent> GetBlockGridItemAreasHtmlAsync(this IHtmlHelper html, BlockGridItem item, string template = "areas")
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| BlockGridItem |
item |
|
| string |
template |
|
Returns
| Type |
Description |
| Task<IHtmlContent> |
|
View Source
GetBlockGridItemsHtml(IHtmlHelper, IEnumerable<BlockGridItem>, string)
Declaration
public static IHtmlContent GetBlockGridItemsHtml(this IHtmlHelper html, IEnumerable<BlockGridItem> items, string template = "items")
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| IEnumerable<BlockGridItem> |
items |
|
| string |
template |
|
Returns
| Type |
Description |
| IHtmlContent |
|
View Source
GetBlockGridItemsHtmlAsync(IHtmlHelper, IEnumerable<BlockGridItem>, string)
Declaration
public static Task<IHtmlContent> GetBlockGridItemsHtmlAsync(this IHtmlHelper html, IEnumerable<BlockGridItem> items, string template = "items")
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| IEnumerable<BlockGridItem> |
items |
|
| string |
template |
|
Returns
| Type |
Description |
| Task<IHtmlContent> |
|