-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Support dots in identifiers #19
Labels
metarhia-s'22
Good for newcomers
Comments
This was referenced Jul 16, 2022
Hello! The solution here is to make deep objects or has another approach? |
We can implement it adding proxies. sheet.cells['item1'] -> Proxy instance with hook to read property |
@tshemsedinov , what if we "override" some value? const sheet = new Sheet();
sheet.cells['item1.price'] = 100;
sheet.cells['item2.price'] = 200;
sheet.cells['item3.price'] = 300;
sheet.cells['total'] = '=item1.price + item2.price + item3.price';
test.strictSame(sheet.values['total'], 600);
sheet.cells['item3'] = 42';
test.strictSame(sheet.values['total'], 600); // what we expect here? Anyway, I want to help with it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is a case to be supported
Now it result:
The text was updated successfully, but these errors were encountered: