Exemplo n.º 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());
        }
Exemplo n.º 2
0
 public virtual void FilterBy(JFunction fn, string scope)
 {
     this.AddScript("{0}.filterBy({1},{2});", this.ClientID, fn.ToString(), scope);
 }
Exemplo n.º 3
0
 public virtual void FilterBy(JFunction fn)
 {
     this.AddScript("{0}.filterBy({1});", this.ClientID, fn.ToString());
 }
Exemplo n.º 4
0
 public virtual void On(string eventName, JFunction handler, string scope, HandlerConfig options)
 {
     this.AddListener(eventName, handler.ToString(), scope, options);
 }
Exemplo n.º 5
0
 public virtual void On(string eventName, JFunction handler, string scope)
 {
     this.AddListener(eventName, handler.ToString(), scope);
 }
Exemplo n.º 6
0
 public virtual void AddListener(string eventName, JFunction handler)
 {
     this.AddListener(eventName, handler.ToString());
 }
Exemplo n.º 7
0
 public virtual void LoadContent(JFunction fn)
 {
     this.AddScript("{0}.load({1});", this.ClientID, fn.ToString());
 }