Blame view

controllets/select-fields-controllet/demo/index.html 1.23 KB
9fd4ca8a   Renato De Donato   new data table
1
2
3
  <html>
  
  <head>
89558a41   Renato De Donato   datatype, provide...
4
5
      <script src="../../../bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
  
9fd4ca8a   Renato De Donato   new data table
6
7
      <script src="../../shared_js/jquery-1.11.2.min.js"></script>
  
89558a41   Renato De Donato   datatype, provide...
8
9
10
11
      <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">
  
      <script src="../../../locales/controllet_ln.js"></script>
9fd4ca8a   Renato De Donato   new data table
12
  
89558a41   Renato De Donato   datatype, provide...
13
      <link rel="import" href="../select-fields-controllet.html" />
9fd4ca8a   Renato De Donato   new data table
14
15
16
17
18
19
20
21
22
  </head>
  
  <body>
  
      <style>
          .container {
              display: flex;
              flex-direction: row;
          }
89558a41   Renato De Donato   datatype, provide...
23
24
          #select_fields_container {
              height: 600px;
9fd4ca8a   Renato De Donato   new data table
25
              width: 300px;
9fd4ca8a   Renato De Donato   new data table
26
27
              margin-left: 100px;
          }
89558a41   Renato De Donato   datatype, provide...
28
  
9fd4ca8a   Renato De Donato   new data table
29
30
31
      </style>
  
      <div class="container">
89558a41   Renato De Donato   datatype, provide...
32
33
          <div id="select_fields_container">
              <select-fields-controllet fields='["pippo", "pluto", "paperino", "pippo", "pluto", "paperino"]' preselected-fields="[0,2]"></select-fields-controllet>
9fd4ca8a   Renato De Donato   new data table
34
          </div>
9fd4ca8a   Renato De Donato   new data table
35
36
      </div>
  
9fd4ca8a   Renato De Donato   new data table
37
      <script>
89558a41   Renato De Donato   datatype, provide...
38
          ln["localization"] = "en";
9fd4ca8a   Renato De Donato   new data table
39
  
89558a41   Renato De Donato   datatype, provide...
40
41
42
          document.addEventListener("select-fields-controllet_selected-fields", function (e) {
              console.log(e.detail.selectedFields);
          });
9fd4ca8a   Renato De Donato   new data table
43
44
45
  
      </script>
  
89558a41   Renato De Donato   datatype, provide...
46
  </body>