Example #1
0
        public virtual void Update(string html, bool loadScripts, JFunction callback)
        {
            string template = "{0}.body.update({1},{2},{3});";

            this.AddScript(
                template,
                this.ClientID,
                JSON.Serialize(html),
                loadScripts.ToString().ToLower(),
                callback.ToString());
        }
Example #2
0
 public virtual void FilterBy(JFunction fn, string scope)
 {
     this.AddScript("{0}.filterBy({1},{2});", this.ClientID, fn.ToString(), scope);
 }
Example #3
0
 public virtual void FilterBy(JFunction fn)
 {
     this.AddScript("{0}.filterBy({1});", this.ClientID, fn.ToString());
 }
Example #4
0
 public virtual void On(string eventName, JFunction handler, string scope, HandlerConfig options)
 {
     this.AddListener(eventName, handler.ToString(), scope, options);
 }
Example #5
0
 public virtual void On(string eventName, JFunction handler, string scope)
 {
     this.AddListener(eventName, handler.ToString(), scope);
 }
Example #6
0
 public virtual void AddListener(string eventName, JFunction handler)
 {
     this.AddListener(eventName, handler.ToString());
 }
Example #7
0
 public virtual void LoadContent(JFunction fn)
 {
     this.AddScript("{0}.load({1});", this.ClientID, fn.ToString());
 }