Example #1
0
        public static IHtmlContent RichLabel <T, TValue>(
            this IHtmlHelper <T> helper,
            Expression <Func <T, TValue> > exp,
            int size          = 6,
            object attrs      = null,
            object inputAttrs = null,
            string classes    = null)
        {
            var Provider          = helper.GetService <IElementsHelper>();
            ControlGroupWriter wt = Provider.RichLabel(helper, exp, size, attrs, inputAttrs, classes);

            return(wt.Write(InputControls.RichTextLabel));
        }
Example #2
0
        public static IHtmlContent CustomInputGroup <T, TValue>(
            this IHtmlHelper <T> helper,
            Expression <Func <T, TValue> > exp,
            string componentName,
            bool required            = false,
            int size                 = 6,
            object attrs             = null,
            object inputAttrs        = null,
            string classes           = null,
            string readonlyComponent = null
            )
        {
            var Provider          = helper.GetService <IElementsHelper>();
            ControlGroupWriter wt = Provider.CustomInputGroup(helper, exp, componentName, required, size, attrs, inputAttrs, classes);

            if (readonlyComponent != null && !wt.Accessibility.Write)
            {
                wt.Accessibility = new CodeShellCore.Moldster.Razor.Accessibility(2);
                return(wt.Write(readonlyComponent));
            }
            return(wt.Write(componentName));
        }