Commit f4ba4a5d3fdd4c84b448831f038561b2f8405b74

Authored by isisadmin
1 parent baeff75d

Updata readme.md

Showing 1 changed file with 3 additions and 3 deletions
README.md
... ... @@ -74,9 +74,9 @@ This is a minimal example of deep client usage.
74 74 We create an empty HTML document with a single DIV. On document ready event we create a datalet_params object, this object contains information for Datalet retrieving and initialization.
75 75  
76 76 datalet_params contains :
77   -component : the Datalet name to be sent to DEEP (Eg. datatable-datalet)
78   -params.data-url : the datasource URL (Eg.http://demo.ckan.org/api/action/datastore_search?resource_id=8324a4c9-66d6-47bf-a898-94237cc39b9f&limit=50)
79   -fields : an array with user selected fields from datasource (Eg. Array("Supplier", "Amount"))
  77 +component : the Datalet name to be sent to DEEP
  78 +params.data-url : the datasource URL
  79 +fields : an array with user selected fields from datasource
80 80 placeHolder : the ID of the DOM element where place the Datalet
81 81  
82 82 ComponentService.getComponent function take a datalet_params object as parameter. This function is responsible for Datalet info retrieving from DEPP and Datalet code retrieving from DEEPCOMPONENTS. Once the Datalet code is available DEEPCLIENT add the Datalet to the document DOM and initialize the Datalet with the data and fields parameters.
... ...