Class GridRowViewModel
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
Represents a view model for a grid row in the frontend.
public class GridRowViewModel : ViewModelBase, IViewModelTemplatePath
- Inheritance
-
GridRowViewModel
- Implements
- Inherited Members
Constructors
GridRowViewModel()
Initializes a new instance of the GridRowViewModel class.
public GridRowViewModel()
Properties
BackgroundImage
Gets or sets the background image.
public ImageFileViewModel BackgroundImage { get; set; }
Property Value
- ImageFileViewModel
The image as an ImageFileViewModel.
ColorScheme
Gets or sets the color scheme.
public ColorSchemeViewModel ColorScheme { get; set; }
Property Value
- ColorSchemeViewModel
The color scheme as an ColorSchemeViewModel.
Columns
Gets the columns.
public IEnumerable<GridColumnViewModel> Columns { get; }
Property Value
Definition
Gets or sets the grid row definition.
public GridRowDefinition Definition { get; }
Property Value
Id
Gets or sets the id of the row.
public int Id { get; }
Property Value
Item
Gets an ItemViewModel instance of this row item.
public ItemViewModel Item { get; }
Property Value
- ItemViewModel
An ItemViewModel instance.
TemplatePath
Gets or sets the template path.
public string TemplatePath { get; }
Property Value
Methods
Column(int)
Gets the column at the specified number.
public GridColumnViewModel Column(int number)
Parameters
number
intThe column number.
Returns
- GridColumnViewModel
The GridColumnViewModel at the specified number.