url

the URL which the component will use to load data after its initialization

string|function|object url;

Example

webix.ui({
    datatype: "xml",
    url: "data.xml"
    // ...
});

Related samples

Details

Used in conjunction with the datatype parameter.
If datatype isn't provided, the component will expect data in the JSON format.

The url parameter can be set as:

  • string - a path to a file or a script
webix.ui({
    view:"datatable", id:"table",
    url:"some.php"
});
  • function - a function to fetch and parse the data into a widget
{ view:"datatable", id:"table", autoConfig:true, url:function(params){
    return webix.ajax("some/path");
}};
{ view:"list", id:"list", template:"#id#. #package#", url:{
    $proxy:true,
    load:function(view, params){
       return webix.ajax().get("data/some", params);
    }
}};
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript web framework and page of chart widget product.