GBonnaire / jspreadsheet-plugins-and-editors

Plugins and Editors for JSpreadsheet Pro 7, Pro 8 and Pro 9
https://repo.gbonnaire.fr/category/jspreadsheetpro
MIT License
13 stars 0 forks source link

Question: is it possible to remove formulas via config? #29

Closed dmt0 closed 1 year ago

dmt0 commented 1 year ago

Plugin Name with version

"@progidev/jss-formulas-statistics": "2.1.2"

JSpreadsheet version

v9.x

Describe the bug

I basically want to make certain formulas unavailable to users. Is there a way of doing this?

Reproduction steps

1.
2.
3.
...
GBonnaire commented 1 year ago

Hi,

No, you can't.

After on init of jspreadsheet, you can remove some formula and refresh documentation of plugin formula editors

delete(formula['TTEST']);
jspreadsheet.current.parent.plugins.formula.refreshDoc();