How to write custom function in Jxls version 3? #405
-
|
customize function in jxls2 version demo how to customize in function in jxls3?Found relevant documents, but I can't understand them. Can you provide relevant examples? Thank you:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
It is not advisable to use the complicated function mechanism. Instead, just add an object to the data map that provides the function. data.put("cf", new JexlCustomFunctionDemo()); In Excel cell: ${cf.mySum(1, 2)} If you need access to PublicContext, see example |
Beta Was this translation helpful? Give feedback.
It is not advisable to use the complicated function mechanism. Instead, just add an object to the data map that provides the function.
data.put("cf", new JexlCustomFunctionDemo());
In Excel cell: ${cf.mySum(1, 2)}
If you need access to PublicContext, see example