05-28-2019 13:41
05-28-2019 13:41
The documentation says i can use this:
<Toggle
settingsKey="toggle"
label={`Toggle Switch: ${settings.toggle === 'true' ? 'on' : 'off'}`}
/>
but when i try this, it says settings is not defined. What is that ${settings...}? i have to add some import?
Thanks for the answers!
Answered! Go to the Best Answer.
05-28-2019 13:47
05-28-2019 13:47
this seems to be the name of the function in which you are.
@daniele97 wrote:The documentation says i can use this:
<Toggle settingsKey="toggle" label={`Toggle Switch: ${settings.toggle === 'true' ? 'on' : 'off'}`} />
but when i try this, it says settings is not defined. What is that ${settings...}? i have to add some import?
Thanks for the answers!
05-28-2019 13:47
05-28-2019 13:47
this seems to be the name of the function in which you are.
@daniele97 wrote:The documentation says i can use this:
<Toggle settingsKey="toggle" label={`Toggle Switch: ${settings.toggle === 'true' ? 'on' : 'off'}`} />
but when i try this, it says settings is not defined. What is that ${settings...}? i have to add some import?
Thanks for the answers!