Class GridColumnViewModel
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
Represents a view model for a grid column
- Inheritance
-
Grid
Column View Model
- Inherited Members
Properties
ColumnNumber
Gets or sets the column number.
Property Value
- int
1 for first column in the row, 2 for second and so forth
ColumnNumberMobile
Gets or sets the column number for mobile devices.
Property Value
- int?
1 for first column in the row, 2 for second and so forth
Remarks
When looping the columns in a row, the mobile sort order can be different and this property will reflect that. E.g. that column 2 should render before column 1 in mobile view
ColumnWidth
Gets or sets the column width.
Property Value
- int
Normal values are 12, 6, 4, 3, 2
Remarks
The column width is out the total number of columns in a row. E.g. a row is 12 columns in total, and the size of this column will be 6 out of 12. A width of 12 = 100% width, 6 = 50% width, 4 = 33.33% width, 3 = 25% width, 2 = 16.66% width
ColumnWidthMobile
Gets or sets the column width for mobile devices.
Property Value
- int?
Normal values are 12, 6, 4
Remarks
The column width is out the total number of columns in a row. E.g. a row is 12 columns in total, and the size of this column will be 6 out of 12. A width of 12 = 100% width, 6 = 50% width, 4 = 33.33% width
FitToContent
Gets or sets the column width behaviour.
Property Value
Paragraph
Gets the paragraph information in the form of the Paragraph
Property Value
RowColumnCount
Gets or sets the row column count.
Property Value
- int
Normal values are 1-6
Remarks
A value of 2 means that the row has 2 columns
Methods
Output()
Gets the content of the column and its belonging paragraph in markup.
Returns
- string
A html string of the rendered paragraph and its item using the chosen paragraph template.