Closed AnthonyAndroulakis closed 1 year ago
@AnthonyAndroulakis, one option that we can look into is creating more "setter" and "getter" methods in the core NiiVue project.
So we could have something like nv.setTextHeight(newHeight)
, and nv.getTextHeight()
Good idea, that would be helpful.
Currently, the NiivueOptions for a Niivue widget can be accessed like so:
nv.text_height
.However, this does not exactly mirror the method of accessing an option from a js Niivue object, which is like so:
nv.opts.textHeight
.The naming difference (snake case vs camel case) is normal, however, the widget version is missing the "opts." text. Ideally, a Niivue widget could have one of its options modified like so: