Skip to content
New issue

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

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

Already on GitHub? # to your account

Add toggle_sidebar() and toggle_switch() #709

Merged
merged 11 commits into from
Jul 26, 2023
Merged

Add toggle_sidebar() and toggle_switch() #709

merged 11 commits into from
Jul 26, 2023

Conversation

gadenbuie
Copy link
Member

Closes #676

  • Adds toggle_sidebar() by renaming sidebar_toggle() (which is now an alias)
  • Adds toggle_switch()

Because the checkbox input binding doesn't have direct support for a toggle method, I implemented the switch toggle as a custom message handler. Since that's only a few lines of JS, I've included it as an inline <script> tag.

@gadenbuie gadenbuie merged commit ea7d550 into main Jul 26, 2023
@gadenbuie gadenbuie deleted the feat/toggle-fns branch July 26, 2023 13:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add toggle_sidebar() alias and add toggle_switch()
2 participants