Blame view

controllets/tree-view-multi-table-controllet/demo/index.html 1.9 KB
94601c1f   Renato De Donato   trevieww multitable
1
2
3
  <html>
  
  <head>
a31f0660   root   sevc-controllet i...
4
5
      <script src="../../../bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
  
94601c1f   Renato De Donato   trevieww multitable
6
7
      <script src="../../shared_js/jquery-1.11.2.min.js"></script>
  
a31f0660   root   sevc-controllet i...
8
9
      <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">
94601c1f   Renato De Donato   trevieww multitable
10
11
12
13
14
15
16
  
      <link rel="import" href="../../tree-view-multi-table-controllet/tree-view-multi-table-controllet.html" />
  </head>
  
  <body>
  
      <tree-view-multi-table-controllet id="tvmt" root-name="data" opened-path="records,geometry" preselected-fields='["nhits", "records,datasetid", "records,recordid"]' data-url="https://data.issy.com/api/records/1.0/search?dataset=liste-des-restaurants-a-issy-les-moulineaux&sort=type&facet=type&facet=terrasse"></tree-view-multi-table-controllet>
4bf5f658   root   update tree map, ...
17
      <!--<tree-view-multi-table-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"></tree-view-multi-table-controllet>-->
94601c1f   Renato De Donato   trevieww multitable
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',-->