Skip to content

Commit 3eba74d

Browse files
committed
Add 986.html
1 parent ed32a57 commit 3eba74d

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

issues/986.html

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Editable select box</title>
5+
<meta charset="utf-8">
6+
<link rel="stylesheet" href="../assets/bootstrap/css/bootstrap.min.css">
7+
<link rel="stylesheet" href="../assets/bootstrap-table/src/bootstrap-table.css">
8+
<link rel="stylesheet" href="//rawgit.com/vitalets/x-editable/master/dist/bootstrap3-editable/css/bootstrap-editable.css">
9+
<link rel="stylesheet" href="../assets/examples.css">
10+
<script src="../assets/jquery.min.js"></script>
11+
<script src="../assets/bootstrap/js/bootstrap.min.js"></script>
12+
<script src="../assets/bootstrap-table/src/bootstrap-table.js"></script>
13+
<script src="../assets/bootstrap-table/src/extensions/editable/bootstrap-table-editable.js"></script>
14+
<script src="//rawgit.com/vitalets/x-editable/master/dist/bootstrap3-editable/js/bootstrap-editable.js"></script>
15+
<script src="../ga.js"></script>
16+
</head>
17+
<body>
18+
<div class="container">
19+
<h1>Editable select box(<a href="https://github.com/wenzhixin/bootstrap-table/issues/986" target="_blank">#986</a>).</h1>
20+
<table id="table"></table>
21+
</div>
22+
<script>
23+
var data = [{
24+
"name": "active"
25+
}, {
26+
"name": "blocked"
27+
}, {
28+
"name": "deleted"
29+
}];
30+
31+
var $table = $('#table');
32+
33+
$(function () {
34+
$table.bootstrapTable({
35+
idField: 'name',
36+
columns: [{
37+
field: 'state',
38+
title: '',
39+
checkbox: true
40+
}, {
41+
field: 'name',
42+
title: 'names',
43+
sortable: true,
44+
editable: {
45+
type: 'select',
46+
source: [
47+
{value: 'active', text: 'Active'},
48+
{value: 'blocked', text: 'Blocked'},
49+
{value: 'deleted', text: 'Deleted'}
50+
]
51+
}
52+
}],
53+
data: data
54+
});
55+
});
56+
</script>
57+
</body>
58+
</html>

0 commit comments

Comments
 (0)