api(ui): Drop toggle_
methods. Consolidate update accordion methods. Stronger typing for layout_sidebar(sidebar)
and page_sidebar(sidebar)
#788
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #716
Fixes #717
Fixes #730
shiny.ui
API changeslayout_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
) orupdate_accordion(,show=True)
; If they'd like to open a set of panels, they can loop through them and callupdate_accordion_panel()
many times.accordion_panel_open()
->update_accordion_panel(,show:bool | None)
(show=False
) orupdate_accordion(,show=False)