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