public DropDownListProjection(JsIncludeDescriptor parentModuleInclude, IEnumerable<Func<IPage, DropDownListProjectionItem>> items, Func<IPage, string> onChangeAction) : base("select") { this.parentModuleInclude = parentModuleInclude; Items = items; OnChangeAction = onChangeAction; }
/// <summary> /// Initializes a new instance of the <see cref="BetterCms.Core.Modules.Projections.JavaScriptModuleLinkTo{TController}" /> class. /// </summary> /// <param name="descriptor">The java script module.</param> /// <param name="linkName">Name of the link.</param> /// <param name="urlExpression">The URL expression.</param> /// <param name="fullUrl">if set to <c>true</c> renders full URL.</param> public JavaScriptModuleLinkTo(JsIncludeDescriptor descriptor, string linkName, Expression <Action <TController> > urlExpression, bool fullUrl = false) { this.fullUrl = fullUrl; this.descriptor = descriptor; this.urlExpression = urlExpression; this.linkName = linkName; }
protected ActionCallProjectionBase(string htmlTag, JsIncludeDescriptor parentModuleInclude, Func<IPage, string> title, Func<IPage, string> onClickAction) : base(htmlTag) { this.parentModuleInclude = parentModuleInclude; Title = title; OnClickAction = onClickAction; }
protected ActionCallProjectionBase(string htmlTag, JsIncludeDescriptor parentModuleInclude, Func <IPage, string> title, Func <IPage, string> onClickAction) : base(htmlTag) { this.parentModuleInclude = parentModuleInclude; Title = title; OnClickAction = onClickAction; }
public DropDownListProjection(JsIncludeDescriptor parentModuleInclude, IEnumerable <Func <IPage, DropDownListProjectionItem> > items, Func <IPage, string> onChangeAction) : base("select") { this.parentModuleInclude = parentModuleInclude; Items = items; OnChangeAction = onChangeAction; }
/// <summary> /// Initializes a new instance of the <see cref="JavaScriptModuleGlobalization" /> class. /// </summary> /// <param name="jsModuleInclude">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(JsIncludeDescriptor jsModuleInclude, string name, Func <string> resource) { this.jsModuleInclude = jsModuleInclude; this.name = name; this.resource = resource; }
/// <summary> /// Initializes a new instance of the <see cref="JavaScriptModuleLink" /> class. /// </summary> /// <param name="descriptor">The js module include.</param> /// <param name="linkName">Name of the link.</param> /// <param name="path">The path.</param> public JavaScriptModuleLink(JsIncludeDescriptor descriptor, string linkName, string path) { this.path = path; this.descriptor = descriptor; this.linkName = linkName; }
/// <summary> /// Initializes a new instance of the <see cref="ButtonActionProjection" /> class. /// </summary> /// <param name="parentModuleInclude">The parent module.</param> /// <param name="onClickAction">The on click action.</param> public SwitchActionProjection(JsIncludeDescriptor parentModuleInclude, Func<IPage, string> onClickAction) : base("div") { this.parentModuleInclude = parentModuleInclude; OnClickAction = onClickAction; }
/// <summary> /// Initializes a new instance of the <see cref="JavaScriptModuleGlobalization" /> class. /// </summary> /// <param name="jsModuleInclude">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(JsIncludeDescriptor jsModuleInclude, string name, Func<string> resource) { this.jsModuleInclude = jsModuleInclude; this.name = name; this.resource = resource; }
/// <summary> /// Initializes a new instance of the <see cref="ButtonActionProjection" /> class. /// </summary> /// <param name="parentModuleInclude">The parent module.</param> /// <param name="title">Button title.</param> /// <param name="onClickAction">Name of the action to execute after button click.</param> public ButtonActionProjection(JsIncludeDescriptor parentModuleInclude, Func <IPage, string> title, Func <IPage, string> onClickAction) : base("div", parentModuleInclude, title, onClickAction) { }
/// <summary> /// Initializes a new instance of the <see cref="ButtonActionProjection" /> class. /// </summary> /// <param name="parentModuleInclude">The parent module.</param> /// <param name="title">Button title.</param> /// <param name="onClickAction">Name of the action to execute after button click.</param> public ButtonActionProjection(JsIncludeDescriptor parentModuleInclude, Func<string> title, Func<IPage, string> onClickAction) : base("div", parentModuleInclude, title, onClickAction) { }
public EditPagePropertiesButtonProjection(JsIncludeDescriptor parentModuleInclude, Func <IPage, string> title, Func <IPage, string> onClickAction) : base(parentModuleInclude, title, onClickAction) { }
/// <summary> /// Initializes a new instance of the <see cref="ButtonActionProjection" /> class. /// </summary> /// <param name="parentModuleInclude">The parent module.</param> /// <param name="onClickAction">The on click action.</param> public SwitchActionProjection(JsIncludeDescriptor parentModuleInclude, Func <IPage, string> onClickAction) : base("div") { this.parentModuleInclude = parentModuleInclude; OnClickAction = onClickAction; }
/// <summary> /// Initializes a new instance of the <see cref="LinkActionProjection" /> class. /// </summary> /// <param name="parentModuleInclude">The parent module.</param> /// <param name="onClickAction">Name of the action to execute after button click.</param> public LinkActionProjection(JsIncludeDescriptor parentModuleInclude, Func<IPage, string> onClickAction) : base("a", parentModuleInclude, onClickAction) { }
public DropDownListProjection(JsIncludeDescriptor parentModuleInclude, Func <IPage, string> onChangeAction) : base("select") { this.parentModuleInclude = parentModuleInclude; OnChangeAction = onChangeAction; }
/// <summary> /// Initializes a new instance of the <see cref="LinkActionProjection" /> class. /// </summary> /// <param name="parentModuleInclude">The parent module.</param> /// <param name="onClickAction">Name of the action to execute after button click.</param> public LinkActionProjection(JsIncludeDescriptor parentModuleInclude, Func <IPage, string> onClickAction) : base("a", parentModuleInclude, onClickAction) { }
public DropDownListProjection(JsIncludeDescriptor parentModuleInclude, Func<IPage, string> onChangeAction) : base("select") { this.parentModuleInclude = parentModuleInclude; OnChangeAction = onChangeAction; }