-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Copy pathpage-jump-to.html
55 lines (53 loc) · 1.08 KB
/
page-jump-to.html
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<script>
init({
title: 'Page Jump To',
desc: 'Use Plugin: bootstrap-table-jump-to to enable jump to page.',
links: [
'bootstrap-table.min.css',
'extensions/page-jump-to/bootstrap-table-page-jump-to.min.css'
],
scripts: [
'bootstrap-table.min.js',
'extensions/page-jump-to/bootstrap-table-page-jump-to.min.js'
]
})
</script>
<template>
<table
id="table"
data-show-columns="true"
data-pagination="true"
data-search="true"
data-show-jump-to="true"
data-url="https://examples.wenzhixin.net.cn/examples/bootstrap_table/data"
data-side-pagination="server"
>
<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>
</template>
<script>
function mounted () {
$('#table').bootstrapTable()
}
</script>