Posted 29 July 2019, 7:02 am EST
Hi Jacek,
I’m sorry but my understanding was not correct. Upon further investigation, we have found that the array parameters are actually supported in SpreadJS too. For enabling array input we need to override the “acceptsArray” method on the custom function and set the formula using the setArrayFormula method, please refer to the following sample which demonstrates the same:
https://codesandbox.io/s/spread-js-starter-99smp
With the above sample, we could achieve the following two scenarios:
=CUSTOMFUNCTION({1,2,3;4,5,6})
=CUSTOMFUNCTION({"A","B","C";"D","E","F"})
But for the third scenario, =CUSTOMFUNCTION({B2,B3,B4;C2,C3,C4}), we have asked the dev team if it is supported. Internal tracking ID for issue is SJS-1163.
Regards