So, I’m using Elixir on the backend, with token based authentication. My question is, with regard to data collections, can I add a header to calls setup in the simple fashion here:
var collection = new webix.DataCollection({
url:“rest->/records”,
save:“rest->/records”
});
I essentially need to add an Authorisation header passing the token as value.
@Helga thank you helga.
But how can I send extra parameters to the “url” of the DataCollection?
I have a search form to filter a grid, after compiling the form, Iit should call a restws and then fill the grid.
I’m using a DataCollection object into a model.
in this moment I have a function that makes the ajax call, and then I parse the return object into a DataCollection.