I am working in a greenfield Sitefinity 12.2 site. I am rendering the site's header and footer using custom grid widgets with placeholders defined for widgets like the site navigation. In the header is a flyout menu with placeholders I would like to populate with widgets on my page template. Unfortunately, I need to disable the site's custom JavaScript when in designer mode to prevent issues with the editing tools, so I can't access the flyout menu through normal means since it is toggled via custom JavaScript.
Ideally, I would like to conditionally render an alternative view of the flyout menu when in page designer mode to allow authors to modify the content of those placeholders. In a Razor file this is possible with something like
@if (SystemManager.IsDesignMode)
but grid widgets use .html files so Razor syntax isn't available. Is there any sort of attribute I can apply to a tag in a grid widget template to tell Sitefinity to render markup only in designer mode? If not, are there any other best practices I should be following to avoid this type of situation?