-
Notifications
You must be signed in to change notification settings - Fork 233
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
SidebarDropdownWrapper add events #644
Comments
It is because it is not exported. |
I tried using on:click for closing another previous Sidebar Dropdown opened. CloseSidebar function try to do it, sending as variable a sidebar dropdown clicked, closing previous and changing previous by current. However, on:click doesn't run or called. Maybe a new funcionality could be by this way: when user click on a sidebar dropdown menu, its ID is saved on component store and after click on another, previous ID is closed (isOpen = false), all those enabled by parameter like SidebarDropdownWrapper closeOpened = true/false |
May I clarify that you want to close other If it is so, it is doable by adding some code. |
@shinokada it is exactly that I want. I've tried to do something, but without success. Maybe need add code on component directly. Would you like to help? |
I will see if I can add that function in the future version. |
Maybe only enabling SidebarDropdownWrapper "on:click" it is enough.
|
I think the latest update solve this issue. You need to add your logic to
From docs |
I close the issue for now since we do not have events on SidebarWrapper any more. |
SidebarDropdownWrapper doesn't have any events to add.
I want manage SidebarDropdownWrapper openings, closing others by on:click
SidebarDropdownWrapper has a on:click event, but it doesn't run.
The text was updated successfully, but these errors were encountered: