Skip to content

Instantly share code, notes, and snippets.

@kivi
kivi / collecttion-json-template-options.md
Created August 21, 2012 12:20 — forked from mrdevinmob/collecttion-json-template-options.md
collection-json extension template options

Template Options

Support template data options by adding property attribute with an array of text and values. Additionally add a multiple property, which indicates multiple values are suppored if set to "true".

  1. Add an optional property to the data object: options (array of objects. text/value pair)

    • the "text" property would indicate the text to be displayed in client.
    • the "value" property would indicate the value associated with the text above. This is the what the client should return to to the API in a POST or PUT request.
  2. Add an optional property to the data object: multiple (boolean).