Skip to content

Commit c1d7568

Browse files
committed
Merging in changes from other branch
2 parents e99f795 + c888903 commit c1d7568

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1252
-1109
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### New features
1515

16+
* `navset_card_*()` now has a `full_screen` option to support `card()`'s existing full-screen functionality. (#1451)
17+
1618
* Added `ui.insert_nav_panel()`, `ui.remove_nav_panel()`, and `ui.update_nav_panel()` to support dynamic navigation. (#90)
1719

1820
* Added support for python 3.13. (#1711)
@@ -65,6 +67,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6567

6668
### Deprecations
6769

70+
* `ui.update_navs()` has been deprecated in favor of `ui.update_navset()`. (#2047)
71+
6872
* `ui.panel_well()` is deprecated in favor of `ui.card()`. (#2038)
6973

7074

docs/_quartodoc-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ quartodoc:
166166
- ui.update_text
167167
- name: ui.update_text_area
168168
dynamic: "shiny.ui.update_text"
169-
- ui.update_navs
169+
- ui.update_navset
170170
- ui.update_action_button
171171
- ui.update_action_link
172172
- ui.update_task_button

docs/_quartodoc-express.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ quartodoc:
126126
- express.ui.update_numeric
127127
- express.ui.update_text
128128
- express.ui.update_text_area
129-
- express.ui.update_navs
129+
- express.ui.update_navset
130130
- express.ui.update_action_button
131131
- express.ui.update_action_link
132132
- express.ui.update_task_button

examples/inputs-update/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def _():
185185
# Tabset input =============================================
186186
# Change the selected tab.
187187
# The tabsetPanel must have been created with an 'id' argument
188-
ui.update_navs("inTabset", selected="panel2" if c_num % 2 else "panel1")
188+
ui.update_navset("inTabset", selected="panel2" if c_num % 2 else "panel1")
189189

190190

191191
app = App(app_ui, server, debug=True)

shiny/api-examples/navset_hidden/app-core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def server(input: Inputs, output: Outputs, session: Session):
1919
@reactive.effect
2020
@reactive.event(input.controller)
2121
def _():
22-
ui.update_navs("hidden_tabs", selected="panel" + str(input.controller()))
22+
ui.update_navset("hidden_tabs", selected="panel" + str(input.controller()))
2323

2424

2525
app = App(app_ui, server)

shiny/api-examples/navset_hidden/app-express.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
@reactive.effect
1717
@reactive.event(input.controller)
1818
def _():
19-
ui.update_navs("hidden_tabs", selected="panel" + str(input.controller()))
19+
ui.update_navset("hidden_tabs", selected="panel" + str(input.controller()))

shiny/api-examples/update_navs/app-core.py renamed to shiny/api-examples/update_navset/app-core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
def server(input: Inputs, output: Outputs, session: Session):
1515
@reactive.effect
1616
def _():
17-
ui.update_navs("inTabset", selected="panel" + str(input.controller()))
17+
ui.update_navset("inTabset", selected="panel" + str(input.controller()))
1818

1919

2020
app = App(app_ui, server)

shiny/api-examples/update_navs/app-express.py renamed to shiny/api-examples/update_navset/app-express.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515

1616
@reactive.effect
1717
def _():
18-
ui.update_navs("inTabset", selected="panel" + str(input.controller()))
18+
ui.update_navset("inTabset", selected="panel" + str(input.controller()))

shiny/express/ui/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
update_date_range,
9595
update_nav_panel,
9696
update_navs,
97+
update_navset,
9798
update_numeric,
9899
update_popover,
99100
update_radio_buttons,
@@ -246,6 +247,7 @@
246247
"update_text",
247248
"update_text_area",
248249
"update_navs",
250+
"update_navset",
249251
"update_tooltip",
250252
"update_popover",
251253
"insert_ui",

shiny/express/ui/_cm_components.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ def nav_panel(
12031203
value
12041204
The value of the item. This is used to determine whether the item is active
12051205
(when an ``id`` is provided to the nav container), programmatically select the
1206-
item (e.g., :func:`~shiny.ui.update_navs`), and/or be provided to the
1206+
item (e.g., :func:`~shiny.ui.update_navset`), and/or be provided to the
12071207
``selected`` argument of the navigation container (e.g.,
12081208
:func:`~shiny.ui.navset_tab`).
12091209
icon
@@ -1249,7 +1249,7 @@ def nav_menu(
12491249
value
12501250
The value of the item. This is used to determine whether the item is active
12511251
(when an ``id`` is provided to the nav container), programmatically select the
1252-
item (e.g., :func:`~shiny.ui.update_navs`), and/or be provided to the
1252+
item (e.g., :func:`~shiny.ui.update_navset`), and/or be provided to the
12531253
``selected`` argument of the navigation container (e.g.,
12541254
:func:`~shiny.ui.navset_tab`).
12551255
icon

0 commit comments

Comments
 (0)