save

defines URLs for data saving

string|boolean|object|function save;

Example

webix.ui({ id: "mylist", view: "list", url: "data.php", save: "save.php" });

Details

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"); }
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.