From f3e42fa720ddab25f2450768b97f5da22713922c Mon Sep 17 00:00:00 2001 From: weibangtuo Date: Fri, 2 Aug 2024 11:50:48 +0800 Subject: [PATCH] Update doc for column options data-formatter and data-footer-formatter --- CHANGELOG.md | 6 ++++++ site/docs/api/column-options.md | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6dc1642394..a05f908ab0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ ChangeLog --------- +### 1.23.3 + +### Core + +- **New:** Added support for column options `formatter` and `footerFormatter` methods returning type `jQuery`, `HTMLElement`. + ### 1.23.2 ### Core diff --git a/site/docs/api/column-options.md b/site/docs/api/column-options.md index 9787866761..165dce8d63 100644 --- a/site/docs/api/column-options.md +++ b/site/docs/api/column-options.md @@ -230,7 +230,7 @@ The column options is defined in `jQuery.fn.bootstrapTable.columnDefaults`. * `data`: Array of all the data rows. * `value`: If footer data is set, the value of the footer column. - The function should return a string with the text to show in the footer cell. + Expected return data type: `jQuery`, `String`, `HTMLElement`. Other types will be forced to `String` type. If you fetch data from a server and set the footer value from the server response, please use the `footerField` Option. @@ -282,6 +282,8 @@ The column options is defined in `jQuery.fn.bootstrapTable.columnDefaults`. * `index`: the row index. * `field`: the row field. + Expected return data type: `jQuery`, `String`, `HTMLElement`. Other types will be forced to `String` type. + - **Default:** `undefined` - **Example:** [Column Formatter](https://examples.bootstrap-table.com/#column-options/formatter.html)