Blame view

controllets/multi-table-controllet/demo/index.html 789 Bytes
94601c1f   Renato De Donato   trevieww multitable
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  <html>
  
  <head>
      <script src="../../shared_js/jquery-1.11.2.min.js"></script>
  
      <script src="../../../bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
  
      <link rel="import" href="../multi-table-controllet.html" />
  </head>
  
  <body>
  
      <multi-table-controllet id="multi" data-url="http://ckan.routetopa.eu/api/action/datastore_search?resource_id=73e02092-85a1-434e-85fe-0c9a43aa9a52&amp;limit=10000"></multi-table-controllet>
  
      <script>
  
          var A = [];
          A["data"] = ["result,records,Lat"];
          A["data,records"] = ["result,records,Lat","result,records,Lng"];
          A["data,records,geometry"] = ["result,records,Lng"];
  
          var multi = document.getElementById('multi');
  
          multi.setSelectedFields(A);
      </script>
  
  </body>
  
  </html>