Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        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));
        }
Beispiel #4
0
        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));
        }