File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < title > getAllSelections</ 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 ="../assets/examples.css ">
9
+ < script src ="../assets/jquery.min.js "> </ script >
10
+ < script src ="../assets/bootstrap/js/bootstrap.min.js "> </ script >
11
+ < script src ="../assets/bootstrap-table/src/bootstrap-table.js "> </ script >
12
+ < script src ="../ga.js "> </ script >
13
+ </ head >
14
+ < body >
15
+ < div class ="container ">
16
+ < h1 > getAllSelections</ h1 >
17
+ < p > </ p >
18
+ < div id ="toolbar ">
19
+ < button id ="button " class ="btn btn-default "> getAllSelections</ button >
20
+ </ div >
21
+ < table id ="table "
22
+ data-toggle ="table "
23
+ data-toolbar ="#toolbar "
24
+ data-height ="460 "
25
+ data-pagination ="true "
26
+ data-search ="true "
27
+ data-click-to-select ="true "
28
+ data-url ="../json/data1.json ">
29
+ < thead >
30
+ < tr >
31
+ < th data-field ="state " data-checkbox ="true "> </ th >
32
+ < th data-field ="id "> ID</ th >
33
+ < th data-field ="name "> Item Name</ th >
34
+ < th data-field ="price "> Item Price</ th >
35
+ </ tr >
36
+ </ thead >
37
+ </ table >
38
+ </ div >
39
+ < script >
40
+ var $table = $ ( '#table' ) ,
41
+ $button = $ ( '#button' ) ;
42
+
43
+ $ ( function ( ) {
44
+ $button . click ( function ( ) {
45
+ alert ( 'getSelections: ' + JSON . stringify ( $table . bootstrapTable ( 'getAllSelections' ) ) ) ;
46
+ } ) ;
47
+ } ) ;
48
+ </ script >
49
+ </ body >
50
+ </ html >
You can’t perform that action at this time.
0 commit comments