Recent Releases of dockViewR
dockViewR - dockViewR 0.2.0
What's Changed
- Bump dockview JS to 4.4.0.
- Add
update_dock_view()to update a dock instance from the server of a Shiny app. - Add
input[["<dock_ID>_added-panel"]]to track which panel has been added. This can be useful in a shiny app context. - Add
input[["<dock_ID>_removed-panel"]]to track which panel has been removed. This can be useful in a shiny app context. - Add
select_panel()function to select a specific panel by id from the server.
Possible breaking changes
- Add
removeparameter toadd_panel()to allow panels to be removable or not. It expects a list with two fields: enable and mode. Enable is a boolean (default to FALSE) and mode is one ofmanual,auto(default to auto). In auto mode, dockview JS removes the panel when it is closed and all its content. If you need more control over the panel removal, set it to manual. Doing so, clicking on remove triggers a custom input on the server side,input[["<dock_ID>_panel-to-remove"]], so you can create observers with custom logic, including removing the panel withremove_panel(). An example of usage is available at https://github.com/cynkra/dockViewR/blob/main/inst/examples/add_panel/app.R. - Add
add_tabparameter todock_view()to allow controlling the add tab behavior. By default, it is disabled. You can activate it by passinglist(enable = TRUE). By default, a JS callback inserts a panel into the dock with instructions on how to overwrite it by content created from the server of a Shiny app. This control is global, that is, you can't have panel for which add_tab is enabled and another for which it is disabled due to constraints imposed by the JS api.
New Contributors
- @andreranza made their first contribution in https://github.com/cynkra/dockViewR/pull/41
Full Changelog: https://github.com/cynkra/dockViewR/compare/v0.1.0...v0.2.0
- R
Published by DivadNojnarg 11 months ago
dockViewR - dockViewR 0.1.0
First CRAN release
🎆
What's Changed
- Update dockview v4 by @DivadNojnarg in https://github.com/cynkra/dockViewR/pull/2
- feature: add_panel by @nelstevens in https://github.com/cynkra/dockViewR/pull/9
- feature: shinytest2 by @nelstevens in https://github.com/cynkra/dockViewR/pull/10
- feature remove panel by @nelstevens in https://github.com/cynkra/dockViewR/pull/11
- more informative id duplication error by @nelstevens in https://github.com/cynkra/dockViewR/pull/12
- Implement move_panel + fix proxy issue by @DivadNojnarg in https://github.com/cynkra/dockViewR/pull/16
- Fix #17 and #20 by @DivadNojnarg in https://github.com/cynkra/dockViewR/pull/21
- Feature: Tab button by @nelstevens in https://github.com/cynkra/dockViewR/pull/19
- Feature move_group by @nelstevens in https://github.com/cynkra/dockViewR/pull/18
- F 22 serialise by @DivadNojnarg in https://github.com/cynkra/dockViewR/pull/24
- F vanilla by @nelstevens in https://github.com/cynkra/dockViewR/pull/29
- WIP: CRAN checklist by @nelstevens in https://github.com/cynkra/dockViewR/pull/30
- add intro vignette by @DivadNojnarg in https://github.com/cynkra/dockViewR/pull/31
New Contributors
- @DivadNojnarg made their first contribution in https://github.com/cynkra/dockViewR/pull/2
- @nelstevens made their first contribution in https://github.com/cynkra/dockViewR/pull/9
Full Changelog: https://github.com/cynkra/dockViewR/commits/v0.1.0
- R
Published by DivadNojnarg about 1 year ago