File tree Expand file tree Collapse file tree 3 files changed +53
-0
lines changed Expand file tree Collapse file tree 3 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 47
47
< li >
48
48
< a href ="# " class ="dropdown-toggle " data-toggle ="dropdown " role ="button " aria-expanded ="false "> Methods < span class ="caret "> </ span > </ a >
49
49
< ul class ="dropdown-menu " role ="menu ">
50
+ < li > < a href ="methods/options.html "> options</ a > </ li >
50
51
< li > < a href ="methods/getSelections.html "> getSelections</ a > </ li >
51
52
< li > < a href ="methods/getData.html "> getData</ a > </ li >
52
53
< li > < a href ="methods/load.html "> load</ a > </ li >
Original file line number Diff line number Diff line change 47
47
<li>
48
48
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Methods <span class="caret"></span></a>
49
49
<ul class="dropdown-menu" role="menu">
50
+ <li><a href="methods/options.html">options</a></li>
50
51
<li><a href="methods/getSelections.html">getSelections</a></li>
51
52
<li><a href="methods/getData.html">getData</a></li>
52
53
<li><a href="methods/load.html">load</a></li>
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < title > getOptions</ 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
+ < div class ="ribbon ">
17
+ < a href ="https://github.com/wenzhixin/bootstrap-table-examples/blob/master/methods/getOptions.html " target ="_blank "> View Source on GitHub</ a >
18
+ </ div >
19
+ < h1 > getOptions</ h1 >
20
+ < p >
21
+ Return the options object: < code > $table.bootstrapTable('getOptions');</ code >
22
+ </ p >
23
+ < div id ="toolbar ">
24
+ < button id ="button " class ="btn btn-default "> getOptions</ button >
25
+ </ div >
26
+ < table id ="table "
27
+ data-toggle ="table "
28
+ data-toolbar ="#toolbar "
29
+ data-height ="460 "
30
+ data-url ="../json/data1.json ">
31
+ < thead >
32
+ < tr >
33
+ < th data-field ="id "> ID</ th >
34
+ < th data-field ="name "> Item Name</ th >
35
+ < th data-field ="price "> Item Price</ th >
36
+ </ tr >
37
+ </ thead >
38
+ </ table >
39
+ </ div >
40
+ < script >
41
+ var $table = $ ( '#table' ) ,
42
+ $button = $ ( '#button' ) ;
43
+
44
+ $ ( function ( ) {
45
+ $button . click ( function ( ) {
46
+ alert ( JSON . stringify ( $table . bootstrapTable ( 'getOptions' ) ) ) ;
47
+ } ) ;
48
+ } ) ;
49
+ </ script >
50
+ </ body >
51
+ </ html >
You can’t perform that action at this time.
0 commit comments