Exemple #1
0
        public static MvcHtmlString SplatsCombo(this HtmlHelper htmlHelper, SplatsComboModel model)
        {
            if (model.HtmlAttributes == null)
            {
                model.HtmlAttributes = new RouteValueDictionary();
            }

            model.HtmlAttributes = model.HtmlAttributes;

            return(htmlHelper.Partial("~/Views/Controls/Combo.cshtml", model));
        }
Exemple #2
0
        public static MvcHtmlString SplatsCombo(this HtmlHelper htmlHelper, string name, SelectList selectList, object htmlAttributes)
        {
            var model = new SplatsComboModel
            {
                ID             = name,
                DataSource     = selectList,
                HtmlAttributes = htmlAttributes,
                SearchBox      = true
            };

            return(SplatsCombo(htmlHelper, model));
        }