Make table columns resizable (does not work very well)

pull/108/head
Candid Dauth 2017-03-01 20:21:28 +01:00
rodzic 79588d05e1
commit 2d54d80730
2 zmienionych plików z 12 dodań i 1 usunięć

Wyświetl plik

@ -4,4 +4,14 @@ h2[aria-expanded=true] .glyphicon-chevron-right {
table.collapse.in {
display: table;
}
table {
table-layout: fixed;
width: auto !important;
}
th,td {
box-sizing: content-box !important;
overflow: hidden;
}

Wyświetl plik

@ -2,6 +2,7 @@ import 'bootstrap';
import $ from 'jquery';
import 'tablesorter/dist/js/jquery.tablesorter';
import 'tablesorter/dist/js/widgets/widget-uitheme.min.js';
import 'tablesorter/dist/js/widgets/widget-resizable.min.js';
import 'tablesorter/dist/css/theme.bootstrap_3.min.css';
import './table.css';
@ -22,6 +23,6 @@ $(document).ready(() => {
$("table.tablesorter").tablesorter({
theme: "bootstrap",
headerTemplate: "{content} {icon}",
widgets: ["uitheme"]
widgets: ["uitheme", "resizable"]
});
});