Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
christofferlanghoff opened this issue Jul 31, 2018 · 2 comments

Comments

@christofferlanghoff
Copy link

christofferlanghoff commented Jul 31, 2018

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 christofferlanghoff changed the title Two canvases in the same body, is it possible only to push on of the based on a canvas name? Two canvases in the same body, is it possible only to push on of them based on a canvas name? Jul 31, 2018
@tb9jen
Copy link

tb9jen commented Aug 7, 2018

Seconded, I was looking for the exact same thing

@webfolkcreative
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants