hyperformula icon indicating copy to clipboard operation
hyperformula copied to clipboard

Document how to define a named expression on HyperFormula initialization

Open sequba opened this issue 3 years ago • 0 comments

Description

There are 2 ways of defining named expressions:

  • addNamedExpression() function
  • the last argument of functions buildEmpty(), buildFromArray() & buildFromSheets()
const engine = HyperFormula.buildFromArray(
  [['=FOO']],
  {},
  [{ name: 'FOO', expression: '=42' }]
)

The latter way is documented poorly, there are no examples in the docs and there are no unit tests.

Type of issue

  • [x] Missing documentation
  • [ ] Error in the documentation
  • [ ] Request for a demo
  • [ ] Request for a tutorial, guide etc.
  • [ ] Other issues, suggestions or ideas

sequba avatar Oct 12 '22 13:10 sequba