Blame view

controllets/filters-controllet/demo/index.html 1.47 KB
0af843be   Renato De Donato   filters + alasql
1
2
3
4
5
6
7
8
9
  <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="../filters-controllet.html" />
  
a53fbbed   Renato De Donato   select-dataset ne...
10
11
      <script src="../../../locales/controllet_ln.js"></script>
  
0af843be   Renato De Donato   filters + alasql
12
13
14
15
16
17
18
19
20
21
      <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">
  </head>
  
  <body>
  
      <style>
  
          .container {
              height: 400px;
89558a41   Renato De Donato   datatype, provide...
22
              width: 1200px;
0af843be   Renato De Donato   filters + alasql
23
24
25
              /*width: 400px;*/
              position: relative;
              top: 100px;
89558a41   Renato De Donato   datatype, provide...
26
              left:300px;
0af843be   Renato De Donato   filters + alasql
27
28
29
30
31
32
33
34
35
          }
  
      </style>
  
      <div class="container">
          <filters-controllet id="filters_controllet"></filters-controllet>
      </div>
  
      <script>
a53fbbed   Renato De Donato   select-dataset ne...
36
          ln["localization"] = "en";
0af843be   Renato De Donato   filters + alasql
37
38
39
40
41
42
43
  
          var fields = ["result,records,Lat","result,records,Lng", "Sbiricos"];
  
          var filters_controllet = document.getElementById('filters_controllet');
  
          filters_controllet.setFields(fields);
  
89558a41   Renato De Donato   datatype, provide...
44
45
          filters_controllet.filters = [{logicalOperator: "OR"}, {field: "Lat", operation: "<=", value: "16"}, {field: "Long", operation: "!=", value: "32"}, {field: "Sbiricos", operation: "!=", value: "12AAA32+DAO"}];
  //        filters_controllet.logicalOperator = "or";
0af843be   Renato De Donato   filters + alasql
46
47
48
49
50
51
52
53
54
55
  
          var filters = filters_controllet.getFilters();
  
          console.log(filters);
  
      </script>
  
  </body>
  
  </html>