File tree Expand file tree Collapse file tree 3 files changed +29
-4
lines changed Expand file tree Collapse file tree 3 files changed +29
-4
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
20
20
21
21
### Other changes
22
22
23
+ * Closed #492 : ` shiny.ui.nav() ` is now deprecated in favor of the more aptly named ` shiny.ui.nav_panel() ` (#876 ).
23
24
* Update penguins example to credit Allison Horst and drop usage of ` shiny.experimental ` (#798 ).
24
25
25
26
Original file line number Diff line number Diff line change 86
86
from ._markdown import markdown
87
87
from ._modal import modal_button , modal , modal_show , modal_remove
88
88
from ._navs import (
89
- nav ,
89
+ nav_panel ,
90
90
nav_menu ,
91
91
nav_control ,
92
92
nav_spacer ,
102
102
# Deprecated
103
103
navset_pill_card ,
104
104
navset_tab_card ,
105
+ nav ,
105
106
)
106
107
from ._notification import notification_show , notification_remove
107
108
from ._output import (
267
268
"modal_show" ,
268
269
"modal_remove" ,
269
270
# _navs
270
- "nav " ,
271
+ "nav_panel " ,
271
272
"nav_menu" ,
272
273
"nav_control" ,
273
274
"nav_spacer" ,
283
284
# # Deprecated
284
285
"navset_pill_card" ,
285
286
"navset_tab_card" ,
287
+ "nav" ,
286
288
# _notification
287
289
"notification_show" ,
288
290
"notification_remove" ,
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
3
__all__ = (
4
- "nav " ,
4
+ "nav_panel " ,
5
5
"nav_menu" ,
6
6
"nav_control" ,
7
7
"nav_spacer" ,
17
17
# Deprecated - 2023-08-15
18
18
"navset_pill_card" ,
19
19
"navset_tab_card" ,
20
+ "nav" ,
20
21
)
21
22
22
23
import copy
@@ -98,7 +99,7 @@ def tagify(self) -> None:
98
99
99
100
100
101
@add_example ()
101
- def nav (
102
+ def nav_panel (
102
103
title : TagChild ,
103
104
* args : TagChild ,
104
105
value : Optional [str ] = None ,
@@ -1394,3 +1395,24 @@ def navset_tab_card(
1394
1395
header = header ,
1395
1396
footer = footer ,
1396
1397
)
1398
+
1399
+
1400
+ # Deprecated 2023-12-07
1401
+ def nav (
1402
+ title : TagChild ,
1403
+ * args : TagChild ,
1404
+ value : Optional [str ] = None ,
1405
+ icon : TagChild = None ,
1406
+ ) -> Nav :
1407
+ """Deprecated. Please use `nav_panel()` instead of `nav()`."""
1408
+ warn_deprecated (
1409
+ "`nav()` is deprecated. "
1410
+ "This method will be removed in a future version, "
1411
+ "please use :func:`~shiny.ui.nav_panel` instead."
1412
+ )
1413
+ return nav_panel (
1414
+ title ,
1415
+ * args ,
1416
+ value = value ,
1417
+ icon = icon ,
1418
+ )
You can’t perform that action at this time.
0 commit comments