I'd love to be able to show a Tabs component's tabs when in design time (the editor) and hide them when in the viewer.
Is there a way to know this in JS?
I'd love to be able to show a Tabs component's tabs when in design time (the editor) and hide them when in the viewer.
Is there a way to know this in JS?
Hi there! There may be a better way, but as a quick suggestion, you can parse the URL to grab either editor
(in edit mode) or apps
(in preview mode)!
{{urlparams.href.split('.com')[1].split('/')[1]}}
Awesome! Didn't know we had access to urlparams.href - that's great, thank you!