public KnockoutFormContext(
     ViewContext viewContext,
     KnockoutContext <TModel> context, string[] instanceNames, Dictionary <string, string> aliases,
     string actionName, string controllerName, object routeValues, object htmlAttributes)
     : base(viewContext)
 {
     this.context        = context;
     this.instanceNames  = instanceNames;
     this.aliases        = aliases;
     this.actionName     = actionName;
     this.controllerName = controllerName;
     this.routeValues    = routeValues;
     this.htmlAttributes = htmlAttributes;
     InStack             = false;
 }
 public KnockoutBinding(KnockoutContext <TModel> context, string[] instanceNames = null, Dictionary <string, string> aliases = null) : base(context, instanceNames, aliases)
 {
 }
Beispiel #3
0
 protected KnockoutSubContext(KnockoutContext <TModel> context, string[] instanceNames = null, Dictionary <string, string> aliases = null)
 {
     Context       = context;
     InstanceNames = instanceNames;
     Aliases       = aliases;
 }
 public KnockoutHtml(ViewContext viewContext, KnockoutContext <TModel> context, string[] instancesNames = null, Dictionary <string, string> aliases = null)
     : base(context, instancesNames, aliases)
 {
     this.viewContext = viewContext;
 }
 public KnockoutTagBuilder(KnockoutContext <TModel> context, string tagName, string[] instanceNames, Dictionary <string, string> aliases)
     : base(context, instanceNames, aliases)
 {
     tagBuilder    = new TagBuilder(tagName);
     TagRenderMode = TagRenderMode.Normal;
 }
 public static KnockoutBindingApplier ApplyBindings <TProperty>(this KnockoutContext <TProperty> context)
 {
     return(new KnockoutBindingApplier(context.ViewContext));
 }