Skip to content

Commit

Permalink
Updated print and locale examples
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzhixin committed Mar 20, 2024
1 parent 93a754f commit 723e671
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 4 additions & 2 deletions extensions/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<tr>
<th data-field="id">ID</th>
<th data-field="name">Item Name</th>
<th data-field="price">Item Price</th>
<th data-field="price"><i class="fa fa-print"></i> Item Price</th>
</tr>
</thead>
</table>
Expand All @@ -28,6 +28,8 @@
var $table = $('#table')

function mounted() {
$table.bootstrapTable()
$table.bootstrapTable({
printStyles: ['https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css']
})
}
</script>
7 changes: 6 additions & 1 deletion options/table-locale.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
data-show-refresh="true"
data-show-toggle="true"
data-show-columns="true"
data-show-button-text="true"
data-show-export="true"
data-pagination="true"
data-url="json/data1.json">
Expand All @@ -93,7 +94,11 @@
var $table = $('#table')

function mounted() {
$table.bootstrapTable()
$table.bootstrapTable({
formatRefresh: function () {
return ''
}
})

$('#locale').change(function () {
$table.bootstrapTable('refreshOptions', {
Expand Down

0 comments on commit 723e671

Please sign in to comment.