forked from jbaysolutions/vue2-bootstrap-table
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (52 loc) · 1.79 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Vue Bootstrap Table</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="examples/app.css">
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css">
</head>
<body>
<style>
.colstyletest {
background-color: #000066;
}
.cellstyletest {
background-color: #a94442;
}
</style>
<div class="container-fluid">
<h1>Vue Bootstrap Table</h1>
<div id="app">
<div class="row">
<div class="col-sm-12">
<button @click="addItem" class="btn btn-primary"><i class="glyphicon glyphicon-plus-sign"></i> Add an item</button>
<button @click="toggleFilter" class="btn btn-default">Toggle Filter</button>
<button @click="togglePicker" class="btn btn-default">Toggle Column Picker</button>
<button @click="togglePagination" class="btn btn-default">Toggle Pagination</button>
</div>
<br/><br/>
<vue-bootstrap-table
:columns="columns"
:values="values"
:show-filter="showFilter"
:show-column-picker="showPicker"
:paginated="paginated"
:multi-column-sortable="multiColumnSortable"
:ajax="ajax"
:row-click-handler=handleRowFunction
:filter-case-sensitive=false
>
</vue-bootstrap-table>
</div>
<h2>Events Received</h2>
<div>
{{ logging }}
</div>
</div>
</div>
<script src="node_modules/vue/dist/vue.js"></script>
<script src="build/bundle.js"></script>
</body>
</html>