Slidebars
Slidebars copied to clipboard
Two canvases in the same body, is it possible only to push on of them based on a canvas name?
I have some javascript for button that toggles an off-canvas . I have two containers with non identiacal names My experience is that both of the canvases is pushed. Is it possible to select a canvas, based on the canvas name and only push a specific canvas in the javascript using the Slidebars API?
Seconded, I was looking for the exact same thing
@christofferlanghoff I have used multiple canvases on one page before. It's been a while but based on an old project I can see that we were doing it this way:
controller.toggle('your-unique-id');
controller.close('your-unique-id');
This allows you to target specific slidebars.