Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="handler"></param>
 /// <returns>An instance of TBuilder</returns>
 public virtual TBuilder PrepareToolbar(string handler)
 {
     if (JFunction.IsFunctionName(handler))
     {
         this.ToComponent().PrepareToolbar.Fn = handler;
     }
     else
     {
         this.ToComponent().PrepareToolbar.Handler = handler;
     }
     return(this as TBuilder);
 }
            /// <summary>
            ///
            /// </summary>
            /// <param name="action">The action delegate</param>
            /// <returns>An instance of TBuilder</returns>
            public virtual TBuilder GetAdditionalData(string handler)
            {
                if (JFunction.IsFunctionName(handler))
                {
                    this.ToComponent().GetAdditionalData.Fn = handler;
                }
                else
                {
                    this.ToComponent().GetAdditionalData.Handler = handler;
                }

                return(this as TBuilder);
            }
            /// <summary>
            ///
            /// </summary>
            public virtual TBuilder SummaryRenderer(string handler)
            {
                if (JFunction.IsFunctionName(handler))
                {
                    this.ToComponent().SummaryRenderer.Fn = handler;
                }
                else
                {
                    this.ToComponent().SummaryRenderer.Handler = handler;
                }

                return(this as TBuilder);
            }
Exemplo n.º 4
0
        public JFunction(string handler)
        {
            if (handler == null)
            {
                throw new ArgumentNullException("handler");
            }

            if (JFunction.IsFunctionName(handler))
            {
                this.Fn = handler;
            }
            else
            {
                this.Handler = handler;
            }
        }