-
Notifications
You must be signed in to change notification settings - Fork 110
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
export ArraySize from hyperformula #843
Comments
Should be doable @izulin? Can you confirm that |
yes, this should definitely be exported |
Could anyone suggest a workaround for the browser to export ArraySize until this is included properly? |
@mlconnor Please share a demo of your code. We need to know your use-case to find a workaround for it. Use codesandbox.io or jsfiddle.net if possible. |
Issue resolved. Here is a sandbox in case anyone is interested. Take a peek at hyperformulaConfig.js file. It's broken because the ArraySize class isn't exported. This class is required to implement custom array functions because the sizing method requires the method to return an ArraySize object. https://codesandbox.io/s/hyperformula-custom-fn-arraysize-issue-ywryj1
|
@mlconnor Thanks for your feedback. This bug is a known issue and will be fixed in one of the upcoming releases. I'm glad that you could find a workaround. |
Will be done in scope of #779 |
Hi @MartinDawson, @mlconnor! I'm more than happy to announce that we just released HyperFormula 2.3.0 where this issue is fixed. Also, we have a new custom functions guide with an advanced example. We are closing this issue as solved. If there is anything that won't work for you after updating please leave a comment. |
ArraySize is needed in customFunctions I think.
Here's my custom funciton below. You can see it accepts either 1, 2, 3 or 4 arguments.
If the first parameter is
financialStatements
then I need to tell hyperformula to return an ArraySize so that it can overflow into subsequent cells.The above works well but I believe
ArraySize
needs to be exported from hyperformula because currently I have to import it like so:The text was updated successfully, but these errors were encountered: