0
任何想法爲什麼onRefresh事件不會觸發?第一次通過表格正確顯示。但是,當點擊刷新按鈕它不起作用(事件不會觸發)。我以前認爲這很有效,但我認爲新版本的bootstrap.min.js可能會殺死它(或者這可能只是一個巧合)。任何幫助都會有所幫助。bootstrap-table onRefresh事件不起作用
HTML:
<table id="stats-view-output4" data-pagination="false" data-show-refresh="true" data-search="false"
data-cache="false" data-show-toggle="false" data-show-columns="false"
data-show-header="false" data-show-footer="false">
</table>
的Javascript(一鍵獲取u到這個功能):
function do_trader_instruments() {
$('#stats-view-output4').bootstrapTable({
onRefresh: function (params) {
bpt_pie_chart();
},
columns: [{
field: 'TradedInstruments',
title: 'Traded Instruments'
}],
data: [{
TradedInstruments: "<div id='instrument-chart'></div>"
}]
});
bpt_pie_chart();
}