Class ApiBlockGridModel
Represents a block grid model in the Delivery API.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public sealed class ApiBlockGridModel
Constructors
View SourceApiBlockGridModel(int, IEnumerable<ApiBlockGridItem>)
Initializes a new instance of the ApiBlockGridModel class.
Declaration
public ApiBlockGridModel(int gridColumns, IEnumerable<ApiBlockGridItem> items)
Parameters
| Type | Name | Description |
|---|---|---|
| int | gridColumns | The number of columns in the grid. |
| IEnumerable<ApiBlockGridItem> | items | The block grid items in the model. |
Properties
View SourceGridColumns
Gets the number of columns in the grid.
Declaration
public int GridColumns { get; }
Property Value
| Type | Description |
|---|---|
| int |
Items
Gets the block grid items in the model.
Declaration
public IEnumerable<ApiBlockGridItem> Items { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<ApiBlockGridItem> |