Menu icon Foundation
Trigger offcanvas sidebar after ajax

I have an offcanvas sidebar that is only created way after the intialization of foundation. But I have a trigger in the header of my page that should be able to reveal the sidebar once it exists.

How could this be achieved?

Thank you

foundation 6offcanvassidebartriggerAJAX

I have an offcanvas sidebar that is only created way after the intialization of foundation. But I have a trigger in the header of my page that should be able to reveal the sidebar once it exists.

How could this be achieved?

Thank you