JsonEncoder
Mixin
Implements data encoding functional that should be mixed to a AbstractCrudManager sub-class. Uses JSON as an encoding system.
// create a new CrudManager using AJAX as a transport system and JSON for encoding
class MyCrudManager extends JsonEncode(AjaxTransport(AbstractCrudManager)) {}
No results
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
Configuration of the JSON encoder used by the Crud Manager.
- requestData : Object
Static data to send with the data request.
new CrudManager({ // add static "foo" property to all requests data encoder : { requestData : { foo : 'Bar' } }, ... });The above snippet will result adding "foo" property to all requests data:
{ "requestId" : 756, "type" : "load", "foo" : "Bar", "stores" : [ ...
- requestData : Object
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of JsonEncoder class, or subclass thereof.
-
Identifies an object as an instance of JsonEncoder class, or subclass thereof.