コード例 #1
0
 public DropDownListProjection(JsIncludeDescriptor parentModuleInclude, IEnumerable<Func<IPage, DropDownListProjectionItem>> items, Func<IPage, string> onChangeAction)
     : base("select")
 {
     this.parentModuleInclude = parentModuleInclude;
     Items = items;
     OnChangeAction = onChangeAction;
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
 protected ActionCallProjectionBase(string htmlTag, JsIncludeDescriptor parentModuleInclude, Func<IPage, string> title, Func<IPage, string> onClickAction)
     : base(htmlTag)
 {
     this.parentModuleInclude = parentModuleInclude;
     Title = title;
     OnClickAction = onClickAction;
 }        
コード例 #4
0
 protected ActionCallProjectionBase(string htmlTag, JsIncludeDescriptor parentModuleInclude, Func <IPage, string> title, Func <IPage, string> onClickAction)
     : base(htmlTag)
 {
     this.parentModuleInclude = parentModuleInclude;
     Title         = title;
     OnClickAction = onClickAction;
 }
コード例 #5
0
 public DropDownListProjection(JsIncludeDescriptor parentModuleInclude, IEnumerable <Func <IPage, DropDownListProjectionItem> > items, Func <IPage, string> onChangeAction)
     : base("select")
 {
     this.parentModuleInclude = parentModuleInclude;
     Items          = items;
     OnChangeAction = onChangeAction;
 }
コード例 #6
0
 /// <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;
 }
コード例 #7
0
 /// <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;
 }
コード例 #8
0
 /// <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;
 }
コード例 #9
0
 /// <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;
 }
コード例 #10
0
 /// <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)
 {
 }
コード例 #11
0
 /// <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;
 }
コード例 #12
0
 /// <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)
 {
 }
コード例 #13
0
 public EditPagePropertiesButtonProjection(JsIncludeDescriptor parentModuleInclude, Func <IPage, string> title, Func <IPage, string> onClickAction)
     : base(parentModuleInclude, title, onClickAction)
 {
 }
コード例 #14
0
 /// <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;
 }
コード例 #15
0
 /// <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)
 {
 }
コード例 #16
0
 public DropDownListProjection(JsIncludeDescriptor parentModuleInclude, Func <IPage, string> onChangeAction)
     : base("select")
 {
     this.parentModuleInclude = parentModuleInclude;
     OnChangeAction           = onChangeAction;
 }
コード例 #17
0
 /// <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)
 {
 }
コード例 #18
0
 public DropDownListProjection(JsIncludeDescriptor parentModuleInclude, Func<IPage, string> onChangeAction)
     : base("select")
 {
     this.parentModuleInclude = parentModuleInclude;
     OnChangeAction = onChangeAction;
 }