Added feature getFooterData
@@ -183,6 +183,16 @@ The calling method syntax: `$('#table').bootstrapTable('method', parameter)`.
- **Example:** [Get Data](https://examples.bootstrap-table.com/#methods/get-data.html)
+## getFooterData
+
+- **Parameter:** `undefined`
+- **Detail:**
+ Get the loaded data of the footer at the moment that this method is called
+- **Example:** [Get Footer Data](https://examples.bootstrap-table.com/#methods/get-footer-data.html)
## getHiddenColumns
- **Parameter:** `undefined`
@@ -2483,6 +2483,10 @@ class BootstrapTable {
return data
}
+ getFooterData () {
+ return this.footerData ?? []
+ }
getSelections () {
return (this.options.maintainMetaData ? this.options.data : this.data)
.filter(row => row[this.header.stateField] === true)
@@ -377,6 +377,7 @@ const METHODS = [
'getOptions',
'refreshOptions',
'getData',
+ 'getFooterData',
'getSelections',
'load', 'append', 'prepend',
'remove', 'removeAll',