Beispiel #1
0
        public static KnockoutTagBuilder <TModel> EditorFor <TModel>(this KnockoutContext <TModel> context, Expression <Func <TModel, object> > property, object additionalViewData = null, object htmlAttributes = null)
        {
            KnockoutTagBuilder <TModel> result = new KnockoutTagBuilder <TModel>(context, "div", null, null);

            if (property != null)
            {
                result.Value(property);
                var memberExpression = property.Body as MemberExpression;
            }

            return(result);
        }
Beispiel #2
0
 protected override void ConfigureBinding(KnockoutTagBuilder <TModel> tagBuilder)
 {
     base.ConfigureBinding(tagBuilder);
     tagBuilder.Value(Binding);
 }