Esempio n. 1
0
        public static MvcHtmlString BuildDateBoxFor <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, Action <PFDateBox> action = null)
        {
            var component = new PFDateBox();

            component.SetPropertyFor(htmlHelper, expression);
            if (action != null)
            {
                action(component);
            }
            return(component.Html(htmlHelper, expression));
        }
Esempio n. 2
0
        public static MvcHtmlString BuildDateBox(this HtmlHelper htmlHelper, string name, object value = null, Action <PFDateBox> action = null)
        {
            var component = new PFDateBox();

            component.SetPropertyFor(htmlHelper, name);
            if (action != null)
            {
                action(component);
            }
            var r = component.Html(htmlHelper, name, value);

            return(r);
        }