Skip to content

url

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

let url: string|function|WebixProxy
webix.grid({
datatype: "xml",
url: "data.xml"
// ...
});

also check the next samples:

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.grid({
id:"table",
url:"some.php"
});
  • function - a function to fetch and parse the data into a widget
webix.grid({
id:"table", autoConfig:true, url:function(){
return fetch("some/path").then(response => response.json());
}
}});