Export togglePanel effect #11

Closed
hubgit wants to merge 1 commit from export-toggle-panel into main
hubgit commented 2022-03-07 13:06:42 +01:00 (Migrated from github.com)

I'd like to be able to find out whether the search panel is currently open.

The smallest change needed to the core package, as here, is to export togglePanel and watch it for changes.

Another approach would be to export a new function that returns true if the panel is currently open.

I'd like to be able to find out whether the search panel is currently open. The smallest change needed to the core package, as here, is to export `togglePanel` and watch it for changes. Another approach would be to export a new function that returns `true` if the panel is currently open.
hubgit commented 2022-03-07 13:24:39 +01:00 (Migrated from github.com)

Closing as I found a better way to do this, using the createPanel option to use a custom panel with mount and destroy methods that can be used to track the panel's state.

Closing as I found a better way to do this, using the `createPanel` option to use a custom panel with `mount` and `destroy` methods that can be used to track the panel's state.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/search!11
No description provided.