Slidebars icon indicating copy to clipboard operation
Slidebars copied to clipboard

Two canvases in the same body, is it possible only to push on of them based on a canvas name?

Open christofferlanghoff opened this issue 6 years ago • 2 comments

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?

christofferlanghoff avatar Jul 31 '18 14:07 christofferlanghoff

Seconded, I was looking for the exact same thing

tb9jen avatar Aug 07 '18 16:08 tb9jen

@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.

webfolkcreative avatar Feb 15 '23 15:02 webfolkcreative