-
Hi all, In the drawer that opens from right side of page (from this pages), how to close the drawer when a sidebar item is clicked?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Checking and unchecking the It's different for each framework but usually for JS frameworks, it's possible by binding a variable as the value of checkbox and then setting that variable to false when item is clicked. Let me know if you have any questions. |
Beta Was this translation helpful? Give feedback.
<a>
tag opens a link but if you want to do a second behavior on top of that (closing the sidebar) you would need JS to do that.Checking and unchecking the
my-drawer-4
checkbox opens or closes the sidebar so you should use JS to uncheck that checkbox.It's different for each framework but usually for JS frameworks, it's possible by binding a variable as the value of checkbox and then setting that variable to false when item is clicked.
Let me know if you have any questions.