forked from wenzhixin/bootstrap-table-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresizable.html
More file actions
37 lines (35 loc) · 1.03 KB
/
resizable.html
File metadata and controls
37 lines (35 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<script>
init({
title: 'Resizable',
desc: 'Use Plugin: <a href="https://github.com/dobtco/jquery-resizable-columns" target="_blank">jquery-resizable-columns</a> and bootstrap-table-resizable.',
links: [
'https://unpkg.com/jquery-resizable-columns@0.2.3/dist/jquery.resizableColumns.css',
'bootstrap-table.min.css'
],
scripts: [
'https://unpkg.com/jquery-resizable-columns@0.2.3/dist/jquery.resizableColumns.min.js',
'bootstrap-table.min.js',
'extensions/resizable/bootstrap-table-resizable.min.js'
]
})
</script>
<table id="table"
data-show-columns="true"
data-search="true"
data-show-toggle="true"
data-pagination="true"
data-url="json/data1.json"
data-resizable="true">
<thead>
<tr>
<th data-field="id" data-sortable="true">ID</th>
<th data-field="name" data-sortable="true">Item Name</th>
<th data-field="price" data-sortable="true">Item Price</th>
</tr>
</thead>
</table>
<script>
function mounted() {
$('#table').bootstrapTable()
}
</script>