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

Add event 'sidebar-toggle' to programmatically toggle sidebar visibility #302

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

chrismayer
Copy link
Collaborator

This adds a hook to programmatically toggle the open state of the AppSidebar. It is implemented as event 'sidebar-toggle', on which the AppSidebar listens to. So every emit of 'sidebar-toggle' over the WguEventBus (WguEventBus.$emit('sidebar-toggle');) toggles the visibility of the sidebar.

Resolves #301

This adds a hook to programmatically toggle the open state of the
AppSidebar.
Implemented as event 'sidebar-toggle', on which the AppSidebar listens
to. So every emit of 'sidebar-toggle' over the WguEventBus toggles the
visibility of the sidebar.
Copy link
Collaborator

@fschmenger fschmenger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@chrismayer
Copy link
Collaborator Author

Thanks for the review, going to merge now.

@chrismayer chrismayer merged commit 76fa530 into wegue-oss:master Oct 6, 2022
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

Successfully merging this pull request may close these issues.

Hook to toggle sidebar visibility programmatically
2 participants