Server Configuration

  • • optional
  • • Type : Object
  • • Properties : url, method, headers, response
Name Description Type Example
url
URL to fetch the data from server-side String `server.php`
method
HTTP method to use for server-side request (e.g., GET, POST) String `GET` (default)
headers
HTTP headers to send with the server-side request Object `{'Authorization': 'Bearer token'}`
response
Function to handle the server response function
function (res) {
  // handle response
}
                                
Local Data Configuration
You can also use local data by omitting the server property and providing data directly through the data property.