Commit 154d344316cca668c3f37f1592547fbb5fc8a55c

Authored by isisadmin
1 parent e4b7758f

update md

Showing 1 changed file with 9 additions and 8 deletions
README.md
@@ -40,6 +40,7 @@ Send a mail to developers@routetopa.eu @@ -40,6 +40,7 @@ Send a mail to developers@routetopa.eu
40 40
41 This is a minimal example of deep client usage. 41 This is a minimal example of deep client usage.
42 42
  43 +<code>
43 <html> 44 <html>
44 <head> 45 <head>
45 <script type="text/javascript" src="js/jquery-1.11.2.min.js"></script> 46 <script type="text/javascript" src="js/jquery-1.11.2.min.js"></script>
@@ -49,13 +50,13 @@ This is a minimal example of deep client usage. @@ -49,13 +50,13 @@ This is a minimal example of deep client usage.
49 jQuery(document).ready(function($) { 50 jQuery(document).ready(function($) {
50 var datalet_params = 51 var datalet_params =
51 { 52 {
52 - component : "DATALET_NAME",  
53 - params : {  
54 - data-url : "DATA_URL",  
55 - }  
56 - fields : Array("FIELD1", "FIELD2"),  
57 - placeHolder : "HTML_PLACEHOLDER"  
58 -}; 53 + component : "DATALET_NAME",
  54 + params : {
  55 + data-url : "DATA_URL",
  56 + }
  57 + fields : Array("FIELD1", "FIELD2"),
  58 + placeHolder : "HTML_PLACEHOLDER"
  59 + };
59 ComponentService.deep_url = 'DEEP_URL'; 60 ComponentService.deep_url = 'DEEP_URL';
60 ComponentService.getComponent(datalet_params); 61 ComponentService.getComponent(datalet_params);
61 62
@@ -67,7 +68,7 @@ This is a minimal example of deep client usage. @@ -67,7 +68,7 @@ This is a minimal example of deep client usage.
67 <div id="HTML_PLACEHOLDER"></div> 68 <div id="HTML_PLACEHOLDER"></div>
68 </body> 69 </body>
69 </html> 70 </html>
70 - 71 +</code>
71 72
72 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. 73 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.
73 74