Spaces:
Build error
Build error
Update data_gc_tab.html
Browse files- data_gc_tab.html +6 -1
data_gc_tab.html
CHANGED
|
@@ -6,6 +6,11 @@
|
|
| 6 |
<title>Tabulator Example</title>
|
| 7 |
<link href="https://unpkg.com/[email protected]/dist/css/tabulator.min.css" rel="stylesheet">
|
| 8 |
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/js/tabulator.min.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
</head>
|
| 10 |
<body>
|
| 11 |
<div id="example-table"></div>
|
|
@@ -18,7 +23,7 @@
|
|
| 18 |
|
| 19 |
var table = new Tabulator("#example-table", {
|
| 20 |
data: tableData, // set initial table data
|
| 21 |
-
layout: "
|
| 22 |
columns: [
|
| 23 |
{title:"Name", field:"name"},
|
| 24 |
{title:"Age", field:"age"},
|
|
|
|
| 6 |
<title>Tabulator Example</title>
|
| 7 |
<link href="https://unpkg.com/[email protected]/dist/css/tabulator.min.css" rel="stylesheet">
|
| 8 |
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/js/tabulator.min.js"></script>
|
| 9 |
+
<style>
|
| 10 |
+
#example-table {
|
| 11 |
+
width: 720px; /* Устанавливаем ширину контейнера */
|
| 12 |
+
}
|
| 13 |
+
</style>
|
| 14 |
</head>
|
| 15 |
<body>
|
| 16 |
<div id="example-table"></div>
|
|
|
|
| 23 |
|
| 24 |
var table = new Tabulator("#example-table", {
|
| 25 |
data: tableData, // set initial table data
|
| 26 |
+
layout: "fitColumns", // fit columns to width of table
|
| 27 |
columns: [
|
| 28 |
{title:"Name", field:"name"},
|
| 29 |
{title:"Age", field:"age"},
|