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

Enable programmatically opening or closing panel #210

Merged
merged 1 commit into from
Oct 19, 2019

Conversation

mainej
Copy link
Contributor

@mainej mainej commented Jun 19, 2018

To hide the panel, run (day8.re-frame-10x/show-panel! false) from ClojureScript, or day8.re_frame_10x.trace.show_panel_BANG_(false) in the JavaScript console. To show the panel, pass true instead.

This would satisfy #181. It might also help some use cases in #204.

I prefer dispatching :settings/show-panel? over :settings/user-toggle-panel because it's idempotent. You have to first check the current state of the panel to know what will happen with :settings/user-toggle-panel. Let me know, though, if you'd prefer to keep :settings/show-panel? internal.

@superstructor superstructor merged commit cf3aed2 into day8:master Oct 19, 2019
@superstructor superstructor self-requested a review October 19, 2019 09:49
@superstructor
Copy link
Contributor

Thanks @mainej 👍 and apologies for the delay in getting to this.

@mike-thompson-day8
Copy link
Contributor

@superstructor we'll need something added to the docs so that others are aware of this new feature. Plus something in the changelog

kimo-k added a commit that referenced this pull request Jun 16, 2023
kimo-k added a commit that referenced this pull request Jun 18, 2023
kimo-k added a commit that referenced this pull request Jun 18, 2023
kimo-k added a commit that referenced this pull request Jun 18, 2023
kimo-k added a commit that referenced this pull request Jun 20, 2023
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.

3 participants