w2utils.settings

Global settings for w2ui
Object
There is a number of default settings used across w2ui library. The setting object is a map with the following structure: You can define and load settings based on your locale. See .locale() method for more information. All locale specific files are located in the /src/locale folder on github.com

Data Types

w2utils.settings.dataType can be one of the following.
HTTPJSON (default) - will encode params as a JSON string and will submit GET request
HTTP - will encode params as HTTP string and will submit GET request
RESTFULL - will encode params as HTTP string and will submit GET for list, PUT for save, DELETE for delete, POST for update actions in w2grid and w2forms. For w2grid the request will look like this:
RESTFULLJSON - will encode params as JSON and will submit GET for list, PUT for save, DELETE for delete, POST for update actions in w2grid and w2forms. Note that often PUT and DELETE are disabled by various hosting services. For w2grid the request will look like this:
JSON - will encode params as JSON and submit POST request. The parameters will be submitted as HTTP payload (not HTTP POST), on the server it needs to be parsed differently.

User Comments

comments powered by Disqus