Exemple #1
0
        MvcHtmlString Group <TInput>(TInput input, Action <IncHorizontalControl <TInput> > configuration) where TInput : IncControlBase
        {
            var label      = new IncLabelControl(this.htmlHelper, this.property);
            var validation = new IncValidationControl(this.htmlHelper, this.property);
            var horizontal = new IncHorizontalControl <TInput>(label, input, validation);

            configuration.Do(r => r(horizontal));

            return(horizontal.Render());
        }
        MvcHtmlString Group <TInput>(TInput input, Action <IncHorizontalControl <TInput> > configuration) where TInput : IncControlBase
        {
            var label = new IncLabelControl(htmlHelper, property);

            label.AddClass("control-label");
            var validation = new IncValidationControl(htmlHelper, property);
            var horizontal = new IncHorizontalControl <TInput>(label, input, validation);

            configuration.Do(r => r(horizontal));

            return(horizontal.ToHtmlString());
        }