05-28-2019 13:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-28-2019 13:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

Accepted Solutions
05-28-2019 13:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-28-2019 13:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-28-2019 13:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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!

