예제 #1
0
        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));
        }
예제 #2
0
        public MvcHtmlString TextBoxCell(bool attr)
        {
            CellParameters par = new CellParameters();

            par.MemberName = MemberName;
            par.ModelName  = ModelName;
            par.IsRequired = attr;
            return(GetView("Components/TableCells/TextBoxCell", par));
        }
예제 #3
0
        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));
        }