コード例 #1
0
 /// <summary>
 /// Specifies the URL used to load JSON data.
 /// </summary>
 /// <param name="url">A URL string.</param>
 public StaticJsonDataSourceBuilder Url(string url)
 {
     url = Portability.GetContentUrl(base.ViewContext, url);
     StoreOptions["load"] = new JRaw("function() { return $.getJSON(" + JsonUtils.SafeSerialize(url) + "); }");
     return(this);
 }
コード例 #2
0
 public RemoteFileProviderBuilder Url(string url)
 {
     base.StoreOptions["endpointUrl"] = Portability.GetContentUrl(base.ViewContext, url);
     return(this);
 }