public static MvcHtmlString TypeaheadFor <TModel, TValue>(this HtmlHelper <TModel> html, Expression <Func <TModel, TValue> > expression, IEnumerable source, object htmlAttributes = null) { var option = new TypeaheadOption(); option.Source(source); return(html.TypeaheadFor(expression, option, htmlAttributes)); }
public static MvcHtmlString TypeaheadFor <TModel, TValue>(this HtmlHelper <TModel> html, Expression <Func <TModel, TValue> > expression, IEnumerable <string> source, TypeaheadOption option, object htmlAttributes = null) { if (source != null) { option.Source(source); } return(html.TypeaheadFor(expression, option, htmlAttributes)); }