Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to add 2 cells at the end of my sheet, one with static text and the other with a summed total? #175

Open
DeanVanGreunen opened this issue Jul 25, 2022 · 0 comments

Comments

@DeanVanGreunen
Copy link

My reason:

I would like to add 2 cells at the end of the sheet from my dataset, a "total" and a "value"

image

here is my code

<ExcelSheet data={this.state.dataset} name="Resellers">
    <ExcelColumn label="Month" value="month"/>
    <ExcelColumn label="Name (ID)" value="name_and_id"/>
    <ExcelColumn label="Promo Code" value="promocode"/>
    <ExcelColumn label="Money Earned" value={(col)=>{
        return "R" + (col.amount / 100);
    }}/>
</ExcelSheet>  

Lib Version:

latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant