Table of Contents

Class GridContainer

Namespace
Dynamicweb.Rendering.Designer
Assembly
Dynamicweb.dll
Represents a container with grid enabled (dwcontent element with setting grid:true;grid-settings:file.json;grid-mode:auto).
public class GridContainer
Inheritance
GridContainer
Inherited Members

Properties

Container

Gets or sets the container.
public DynamicElement Container { get; set; }

Property Value

DynamicElement
The originating container as a DynamicElement instance.

Mode

Gets or sets the grid rendering mode. Can be either Auto or InlineTemplate. Setting this to Auto tells Dynamicweb to insert markup for containers, rows and columns. Setting this to InlineTemplate tells Dynamicweb to not insert markup - that will need to be handled in the template using ParagraphColumnClass*, ParagraphIsLast, ParagraphSwitchRowAfterCurrent and ParagraphSwitchRowAfterNext tags.
public GridContainer.GridMode Mode { get; set; }

Property Value

GridContainer.GridMode
The mode switch.

Settings

Gets or sets the settings for the grids.
public GridSettings Settings { get; set; }

Property Value

GridSettings
A GridSettings instance.

Type

Gets or sets the build-in grid type that can be used instead of a grid-settings file.
public GridContainer.GridType Type { get; set; }

Property Value

GridContainer.GridType
The grid type.
To top