﻿using System;

namespace NonFactors.Mvc.Grid
{
    public class GridRow<T> : IGridRow<T>
    {
        public T Model { get; }
        public Int32 Index { get; }

        public String? CssClasses { get; set; }
        public GridHtmlAttributes? Attributes { get; set; }

        public GridRow(T model, Int32 index)
        {
            Index = index;
            Model = model;
        }
    }
}
