defines URLs for data saving
webix.ui({ id: "mylist", view: "list", url: "data.php", save: "save.php" });
If the property is set, the component will create a DataProcessor instance, and initialize it with the defined URL.
If you need to get the DataProcessor, you can use:
var view = $$("myview"); var dp = webix.dp(view); // the dataprocessor that was assigned to the view
You can define a specific script for each editing operation (as insert, update and delete one). DataProcessor will define the type of an operation, and the necessary script will be executed:
save:{ "insert":"data/insert.php", "update":"data/update.php", "delete":"data/delete.php" }
These properties also can be functions:
"delete": function() { return webix.ajax().post("data/delete.php"); }