protected ActionCallProjectionBase(string htmlTag, JavaScriptModuleDescriptor parentModule, Func<string> title, Func<IPage, string> onClickAction) : base(htmlTag) { this.parentModule = parentModule; Title = title; OnClickAction = onClickAction; }
public DropDownListProjection(JavaScriptModuleDescriptor parentModule, IEnumerable<Func<IPage, DropDownListProjectionItem>> items, Func<IPage, string> onChangeAction) : base("select") { this.parentModule = parentModule; Items = items; OnChangeAction = onChangeAction; }
/// <summary> /// Initializes a new instance of the <see cref="LinkActionProjection" /> class. /// </summary> /// <param name="parentModule">The parent module.</param> /// <param name="title">Link title.</param> /// <param name="onClickAction">Name of the action to execute after button click.</param> public LinkActionProjection(JavaScriptModuleDescriptor parentModule, Func<string> title, Func<IPage, string> onClickAction) : base("a", parentModule, title, onClickAction) { }
/// <summary> /// Initializes a new instance of the <see cref="ButtonActionProjection" /> class. /// </summary> /// <param name="parentModule">The parent module.</param> /// <param name="onClickAction">The on click action.</param> public ButtonActionProjection(JavaScriptModuleDescriptor parentModule, Func<IPage, string> onClickAction) : base("div", parentModule, onClickAction) { }
public DropDownListProjection(JavaScriptModuleDescriptor parentModule, Func<IPage, string> onChangeAction) : base("select") { this.parentModule = parentModule; OnChangeAction = onChangeAction; }
/// <summary> /// Initializes a new instance of the <see cref="JavaScriptModuleGlobalization" /> class. /// </summary> /// <param name="javaScriptModule">The java script module.</param> /// <param name="name">The name.</param> /// <param name="resource">A function to retrieve resource in current culture.</param> public JavaScriptModuleGlobalization(JavaScriptModuleDescriptor javaScriptModule, string name, Func<string> resource) { this.javaScriptModule = javaScriptModule; this.name = name; this.resource = resource; }