DmitrMakeev commited on
Commit
3cdff1e
·
verified ·
1 Parent(s): ecf672f

Update data_gc_tab.html

Browse files
Files changed (1) hide show
  1. data_gc_tab.html +12 -15
data_gc_tab.html CHANGED
@@ -11,12 +11,17 @@
11
  <body>
12
  <div id="example-table"></div>
13
 
14
- <script type="text/javascript">
15
- var data = [
16
- { "email": "[email protected]", "name": "Елена", "phone": "79290547079" },
17
- { "email": "[email protected]", "name": "Ольга", "phone": "79150408998" },
18
- // Добавьте остальные данные здесь
19
- ];
 
 
 
 
 
20
 
21
 
22
  </script>
@@ -26,15 +31,7 @@
26
 
27
 
28
  <script type="text/javascript">
29
- var table = new Tabulator("#example-table", {
30
- height: "311px",
31
- ajaxURL: "https://your-server-url/data_gc_tab_out?api_sys=fasSd345D", // URL для загрузки данных
32
- columns: [
33
- { title: "Name", field: "name", width: 250, frozen: true },
34
- { title: "Phone", field: "phone", width: 200 },
35
- { title: "Email", field: "email", width: 300 }
36
- ],
37
- });
38
  </script>
39
 
40
 
 
11
  <body>
12
  <div id="example-table"></div>
13
 
14
+ var table = new Tabulator("#example-table", {
15
+ height:"311px",
16
+ columns:[
17
+ {title:"Name", field:"name", width:250, frozen:true}, //frozen column
18
+ {title:"Progress", field:"progress", sorter:"number", hozAlign:"left", formatter:"progress", width:200, editable:true},
19
+ {title:"Gender", field:"gender", width:150},
20
+ {title:"Rating", field:"rating", formatter:"star", hozAlign:"center", width:200},
21
+ {title:"Date Of Birth", field:"dob", hozAlign:"center", sorter:"date"},
22
+ {title:"Driver", field:"car", hozAlign:"center", formatter:"tickCross", width:150},
23
+ ],
24
+ });
25
 
26
 
27
  </script>
 
31
 
32
 
33
  <script type="text/javascript">
34
+
 
 
 
 
 
 
 
 
35
  </script>
36
 
37