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

api(ui): Drop toggle_ methods. Consolidate update accordion methods. Stronger typing for layout_sidebar(sidebar) and page_sidebar(sidebar) #788

Merged
merged 12 commits into from
Oct 28, 2023

Conversation

schloerke
Copy link
Collaborator

@schloerke schloerke commented Oct 27, 2023

Fixes #716
Fixes #717
Fixes #730

shiny.ui API changes

  • layout_sidebar(sidebar: Sidebar, *args)
  • page_sidebar(sidebar: Sidebar, *args)
  • toggle_sidebar() -> update_sidebar(,show:bool=)
  • is_fillable_container(), is_fill_item()
  • toggle_switch()
  • toggle_tooltip() -> update_tooltip(,show:bool=)
  • toggle_popover() -> update_popover(,show:bool=)
  • accordion_panel_set() -> update_accordion(, show:bool | str | list[str] | None)
  • accordion_panel_insert() -> insert_accordion_panel()
  • accordion_panel_remove() -> remove_accordion_panel()
  • accordion_panel_open() -> update_accordion_panel(,show:bool | None) (show=True) or update_accordion(,show=True); If they'd like to open a set of panels, they can loop through them and call update_accordion_panel() many times.
  • accordion_panel_open() -> update_accordion_panel(,show:bool | None) (show=False) or update_accordion(,show=False)

@schloerke schloerke self-assigned this Oct 28, 2023
@schloerke schloerke changed the title API tweaks api(ui): Drop toggle_ methods. Consolidate update accordion methods. Stronger typing for layout_sidebar(sidebar) and page_sidebar(sidebar) Oct 28, 2023
@schloerke schloerke marked this pull request as ready for review October 28, 2023 03:56
@schloerke schloerke requested a review from wch October 28, 2023 03:57
@schloerke schloerke merged commit 0053329 into main Oct 28, 2023
24 checks passed
@schloerke schloerke deleted the api_changes branch October 28, 2023 04:05
schloerke added a commit that referenced this pull request Nov 2, 2023
* main: (56 commits)
  Add actions step for nightly reporting -> Testrail (#774)
  Remove unused entry in manifest
  Bump version to 0.6.0.9000
  Use latest htmltools
  Bump version to v0.6.0; Rearrange news to have API changes last
  Tweaks from testing
  Fix default width/height with implicit plot output (#792)
  Update deps (#794)
  Remove deprecated 'name' parameter from `Outputs` (#791)
  api(ui): Drop `toggle_` methods. Consolidate update accordion methods. Stronger typing for `layout_sidebar(sidebar)` and `page_sidebar(sidebar)` (#788)
  bug(sidebar): Revert sidebar icon back to chevron (#789)
  For `input_action_button`, default to having whitespace around button (#758)
  Remove output from template app (#775)
  Add output_args and suspend_display decorators (#786)
  Update value_box; Update to bootstrap 5.3; Update htmldeps (#772)
  tests: add sidebar test (#787)
  Seaborn plots should fill their output_plot (#785)
  Kwargs to uvicorn run (#780)
  Add width and height arguments to `@render.plot` (#783)
  gitgnore dist/
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant