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
Can math widget calculate based on other data instead of displayed table data ? #624
Comments
Hi @Waynezhi! Good point! I thought I had included a way to get the cell value from a data-attribute. I'll have this fixed in the next update. It will get the value from the data-attribute set by the |
cool, i already added data-mydecimal attribute on each % td, just waiting your fix to get sum, |
You can get this fix from the working branch: 8d306ab I forgot to reference this issue. |
i saw in col-custom, we can get an array of cells content, but what i need is an array of cells objects, than get data attribute from each of them and do sum, right ? |
The array passed to the equation would contain the value from the data-attribute, or cell content if the data-attribute doesn't exist. Did you need the cell element passed to the equation as well? |
thx @Mottie it should be ok for me with the data-attribute value |
I'll update the master branch In the next few days. The fix is already available within the working branch. |
ok that helps me a lot, thx @Mottie |
example, float number precision problem, when i calculate the percent, i leave 4 numbers after comma, and i want to show only 2 number after comma by user friendly, but in the sum cell, it should be calculated based on the float with more precision (if not, the result will be 100.02% instead of 100.00%)
The text was updated successfully, but these errors were encountered: