public static Input InputNumber <T>(this IHtmlHelper <T> helper, Expression <Func <T, int> > property) { var propertyContext = PropertyContext.New(helper, property); return(new Input(helper, "number", propertyContext)); }
public static Input InputHidden <TModel, TValue>(this IHtmlHelper <TModel> helper, Expression <Func <TModel, TValue> > property) { var propertyContext = PropertyContext.New <TModel, TValue>(helper, property); return(new Input(helper, "hidden", propertyContext)); }
public static Input InputText <T>(this IHtmlHelper <T> helper, Expression <Func <T, string> > property) { var propertyContext = PropertyContext.New(helper, property); return(new Input(helper, "text", propertyContext)); }
public static Select Select <T, U>(this IHtmlHelper <T> helper, Expression <Func <T, U> > property, IEnumerable <Option> options) { var propertyContext = PropertyContext.New(helper, property); return(new Select(helper, options, propertyContext).Multiple(propertyContext.IsList)); }