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

Special syntax to sum subfields #22

Open
tshemsedinov opened this issue Jul 16, 2022 · 0 comments
Open

Special syntax to sum subfields #22

tshemsedinov opened this issue Jul 16, 2022 · 0 comments
Labels
metarhia-s'22 Good for newcomers

Comments

@tshemsedinov
Copy link
Member

After implementing #19 it would be great to have something like in examples below but need more research about syntax, it may be different:

  const sheet = new Sheet();
  sheet.cells['item1.price'] = 100;
  sheet.cells['item2.price'] = 200;
  sheet.cells['item3.price'] = 300;

  // Instead of: sheet.cells['total'] = '=item1.price + item2.price + item3.price';
  sheet.cells['total'] = '=sum(item1, item2, item3).price';
@tshemsedinov tshemsedinov added the metarhia-s'22 Good for newcomers label Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
metarhia-s'22 Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant