Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzhixin committed Oct 1, 2024
2 parents 0561512 + d6e856e commit 8936d59
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 9 deletions.
2 changes: 1 addition & 1 deletion assets/js/template.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
window._config = {
isDebug: location.hash.slice(1) === 'is-debug' ||
['localhost', '127.0.0.1', 'dev.bootstrap-table.com'].indexOf(location.hostname) > -1,
cdnUrl: 'https://cdn.jsdelivr.net/npm/[email protected].4/dist/',
cdnUrl: 'https://cdn.jsdelivr.net/npm/[email protected].5/dist/',
localUrl: '../bootstrap-table/src/',
testUrl: '/src/'
}
Expand Down
4 changes: 2 additions & 2 deletions crud/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].4/dist/bootstrap-table.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].5/dist/bootstrap-table.min.css">
<style>
.mr10 { margin-right: 10px; }
.alert {
Expand All @@ -17,7 +17,7 @@
<script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].4/dist/bootstrap-table.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].5/dist/bootstrap-table.min.js"></script>
</head>
<body>
<div class="container">
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@
<li><a href="#methods/expand-collapse-row.html">Expand/Collapse Row</a></li>
<li><a href="#methods/filter-by.html">Filter By</a></li>
<li><a href="#methods/get-data.html">Get Data</a></li>
<li><a href="#methods/get-footer-data.html">Get Footer Data</a></li>
<li><a href="#methods/get-hidden-rows.html">Get Hidden Rows</a></li>
<li><a href="#methods/get-options.html">Get Options</a></li>
<li><a href="#methods/get-row-by-unique-id.html">Get Row By Unique Id</a></li>
Expand Down
41 changes: 41 additions & 0 deletions methods/get-footer-data.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<script>
init({
title: 'Get Footer Data',
desc: 'Get the loaded data of the footer: `$table.bootstrapTable(\'getFooterData\')`.',
links: ['bootstrap-table.min.css'],
scripts: ['bootstrap-table.min.js']
})
</script>

<div id="toolbar">
<button id="button" class="btn btn-secondary">getFooterData</button>
</div>
<table
id="table"
data-toggle="table"
data-toolbar="#toolbar"
data-height="460"
data-show-footer="true"
data-pagination="true"
data-side-pagination="server"
data-data-field="items"
data-url="json/footerField.json">
<thead>
<tr>
<th data-field="id">ID</th>
<th data-field="name">Item Name</th>
<th data-field="price">Item Price</th>
</tr>
</thead>
</table>

<script>
var $table = $('#table')
var $button = $('#button')

function mounted() {
$button.click(function () {
alert(JSON.stringify($table.bootstrapTable('getFooterData')))
})
}
</script>
2 changes: 1 addition & 1 deletion options/table-locale.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
links: ['bootstrap-table.min.css'],
scripts: [
'bootstrap-table.min.js',
'https://cdn.jsdelivr.net/npm/[email protected].4/dist/bootstrap-table-locale-all.min.js'
'https://cdn.jsdelivr.net/npm/[email protected].5/dist/bootstrap-table-locale-all.min.js'
]
})
</script>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-table-examples",
"version": "1.23.4",
"version": "1.23.5",
"description": "bootstrap-table-examples",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion vue-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@popperjs/core": "^2.11.8",
"bootstrap": "^5.3.3",
"bootstrap-icons": "^1.11.3",
"bootstrap-table": "^1.23.4",
"bootstrap-table": "^1.23.5",
"jquery": "^3.7.1",
"tableexport.jquery.plugin": "^1.30.0",
"vue": "^3.4.27"
Expand Down
2 changes: 1 addition & 1 deletion webpack-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"bootstrap": "^4.5.0",
"bootstrap-table": "^1.23.4",
"bootstrap-table": "^1.23.5",
"jquery": "^3.5.1",
"popper.js": "^1.16.1"
},
Expand Down
2 changes: 1 addition & 1 deletion welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
scripts: [
'https://cdn.jsdelivr.net/npm/[email protected]/tableExport.min.js',
'bootstrap-table.min.js',
'https://cdn.jsdelivr.net/npm/[email protected].4/dist/bootstrap-table-locale-all.min.js',
'https://cdn.jsdelivr.net/npm/[email protected].5/dist/bootstrap-table-locale-all.min.js',
'extensions/export/bootstrap-table-export.min.js'
]
})
Expand Down
2 changes: 1 addition & 1 deletion welcomes/vue-component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
scripts: [
'https://unpkg.com/vue@3/dist/vue.global.js',
'bootstrap-table.min.js',
'https://cdn.jsdelivr.net/npm/[email protected].4/dist/bootstrap-table-vue.umd.js'
'https://cdn.jsdelivr.net/npm/[email protected].5/dist/bootstrap-table-vue.umd.js'
]
})
</script>
Expand Down

0 comments on commit 8936d59

Please sign in to comment.