public MvcHtmlString TextCell(string modelName, object attr) { CellParameters par = new CellParameters(); par.ModelName = modelName; par.MemberName = MemberName; par.Attributes = ToAttributeString(attr); return(GetView("Components/TableCells/TextCell", par)); }
public MvcHtmlString TextBoxCell(bool attr) { CellParameters par = new CellParameters(); par.MemberName = MemberName; par.ModelName = ModelName; par.IsRequired = attr; return(GetView("Components/TableCells/TextBoxCell", par)); }
public MvcHtmlString CalendarCell(object attr = null) { CellParameters par = new CellParameters(); par.ModelName = ModelName; par.MemberName = MemberName; par.Attributes = ToAttributeString(attr); par.InputControl = GetInputControl(ComponentNames.CalendarTextBox); InputModel.PlaceHolder = GroupModel.Label; Validations = Helper.VCollection().AddPattern(NgOptions.DateValidationPattern); return(GetView("Components/TableCells/Cell", par)); }