Blame view

controllets/select-data-controllet/demo/index.html 1.82 KB
0af843be   Renato De Donato   filters + alasql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  <html>
  
  <head>
      <script src="../../../bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
  
      <script src="../../shared_js/jquery-1.11.2.min.js"></script>
  
      <script src="../../shared_js/perfect-scrollbar/js/min/perfect-scrollbar.jquery.min.js"></script>
      <link rel="stylesheet" href="../../shared_js/perfect-scrollbar/css/perfect-scrollbar.min.css">
  
      <link rel="import" href="../../select-data-controllet/select-data-controllet.html" />
  </head>
  
  <body>
  
39d5ab70   Renato De Donato   update filters
16
17
      <!--<select-data-controllet id="tvmt" root-name="data" opened-path="records,geometry" preselected-fields='["nhits", "records,datasetid", "records,recordid"]' data-url="http://ckan.routetopa.eu/api/action/datastore_search?resource_id=73e02092-85a1-434e-85fe-0c9a43aa9a52&limit=5"></select-data-controllet>-->
      <select-data-controllet id="tvmt" root-name="data" data-url="http://ckan.routetopa.eu/api/action/datastore_search?resource_id=73e02092-85a1-434e-85fe-0c9a43aa9a52&limit=5"></select-data-controllet>
0af843be   Renato De Donato   filters + alasql
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  
      <script>
          var tvmt = document.getElementById('tvmt');
  
          tvmt.addEventListener("tree-view-controllet_selected-fields", function (e) {
  //            console.log(tvmt.getFlatFields());
  //            console.log(tvmt.getFields());
          });
  
      </script>
  
  </body>
  
  </html>
  
  <!--urls:-->
  <!--http://dati.lazio.it/catalog/api/action/datastore_search?resource_id=114baf3d-6d4f-42ff-b4af-481beef59ae1-->
  <!--url: 'http://ckan.routetopa.eu/api/action/datastore_search?resource_id=73e02092-85a1-434e-85fe-0c9a43aa9a52&limit=5',-->
  <!--url: 'https://data.issy.com/api/records/1.0/search?dataset=liste-des-restaurants-a-issy-les-moulineaux&sort=type&facet=type&facet=terrasse',-->
  <!--url: 'https://data.issy.com/api/records/1.0/search?dataset=flux-rss-des-offres-demplois-a-issy-les-moulineaux&sort=published&facet=published&refine.published=2015',-->