No way to show aggregation statistics data in table
See original GitHub issueVersion
2.9.1
Environment
browser
Reproduction link
Steps to reproduce
I wanna to show aggregation statistics at Table footer, I am tryings following ways:
- using
footer
prop, addtr
andtd
to it
<Table
dataSource={dataSource}
footer={() => {
return (
<tr className='ant-table-row ant-table-row-level-0'>
<td>总计</td>
<td>总计</td>
<td>总计</td>
</tr>
)
}}
/>
- add extra data in
dataSource
prop
dataSource.push({id: '总计', price: '3000'})
What is expected?
A picture is worth a thousand words:
What is actually happening?
-
using
footer
prop, But thefooter
prop is not fit the table tbody. -
add extra data in
dataSource
prop, But if the dataSource length is over thepageSize
, the extra data will be ignored.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:78 (22 by maintainers)
Top Results From Across the Web
Data Aggregation Explained + Use Cases | Coupler.io Blog
Data aggregation lets you take a bird's-eye view of all the data your business is gathering. Learn how you can set it up...
Read more >Data Aggregation in Tableau
In Tableau, you can aggregate measures or dimensions, though it is more common to aggregate measures. Whenever you add a measure to your...
Read more >Data aggregation - IBM
Data aggregation is the process where raw data is gathered and expressed in a summary form for statistical analysis.
Read more >Aggregate data from a column (Power Query)
Using Power Query, you can aggregate one or more columns of a related table. For example, you can aggregate the sum of order...
Read more >Efficient aggregation (and more) using data.table
This is a very important aspect of the data.table syntax. Last but not least as implied by the fact that both the aggregating...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello @TangMonk, it seems that you are requesting a feature than reporting a bug, I’m afraid we don’t have plan to implement this feature. You can disable table’s default pagination and implement pagination by yourself.
After thinking a while for the
tfoot
API, I’d like to add it tocolumn
property:renders