EEmma WilsonMay 17, 2023
[Open Side Panel](#)
I undertand that is possible to open the side from an element with the class "side-panel-trigger".
Is there any way to open the side panels from js code?
1 reply · opened May 17, 2023
[Open Side Panel](#)
I undertand that is possible to open the side from an element with the class "side-panel-trigger".
Is there any way to open the side panels from js code?
Hello,
Absolutely! Consider using this code to Open the Side Panel:
[ch_pre type="js"]document.body.classList.add('side-panel-open');[/ch_pre]
and this to close the Side Panel:
[ch_pre type="js"]document.body.classList.remove('side-panel-open');[/ch_pre]
This will definitely work fine. Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard