v7.3.0
SupportExamplesFree Trial

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"      : [
                  ...
      

Properties

Properties are getters/setters or publicly accessible variables on this class

Functions

Functions are methods available for calling on the class

    Source path

    Scheduler/crud/encoder/JsonEncoder.js

    Contents