Skip to content

Commit 206252b

Browse files
committed
Updating comments
1 parent 7f0a796 commit 206252b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

shiny/express/ui/_insert.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,28 +33,28 @@ def insert_nav_panel(
3333
Parameters
3434
----------
3535
id
36-
The id of the navset container to insert the item into.
36+
The id of the navset container to insert into.
3737
title
38-
A title to display. Can be a character string or UI elements (i.e., tags).
38+
A title for the inserted nav panel. Can be a character string or UI elements (i.e., tags).
3939
*args
40-
UI elements to display when the item is active.
40+
UI elements for the inserted nav panel.
4141
value
42-
The value of the item. Use this value to determine whether the item is active
42+
The value of the nav panel. Use this value to determine whether the item is active
4343
(when an `id` is provided to the nav container) or to programmatically
4444
select the item (e.g., :func:`~shiny.ui.update_navs`). You can also
4545
provide the value to the `selected` argument of the navigation container
4646
(e.g., :func:`~shiny.ui.navset_tab`).
4747
icon
48-
An icon to appear inline with the button/link.
48+
An icon to appear inline with the title.
4949
target
50-
The `value` of an existing :func:`shiny.ui.nav` item, next to which tab will
50+
The `value` of an existing :func:`shiny.ui.nav_panel`, next to which tab will
5151
be added. Can also be `None`; see `position`.
5252
position
53-
The position of the new nav item relative to the target nav item. If
53+
The position of the new nav item relative to the target nav panel. If
5454
`target=None`, then `"before"` means the new nav item should be inserted at
55-
the head of the navlist, and `"after"` is the end.
55+
the head of the navset, and `"after"` is the end.
5656
select
57-
Whether the nav item should be selected upon insertion.
57+
Whether the nav panel should be selected upon insertion.
5858
session
5959
A :class:`~shiny.Session` instance. If not provided, it is inferred via
6060
:func:`~shiny.session.get_current_session`.

shiny/ui/_navs_dynamic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def insert_nav_panel(
3838
string is only allowed when the `target` references a
3939
:func:`~shiny.ui.nav_menu`.
4040
target
41-
The `value` of an existing :func:`shiny.ui.nav` item, next to which tab will
41+
The `value` of an existing :func:`shiny.ui.nav_panel`, next to which tab will
4242
be added. Can also be `None`; see `position`.
4343
position
4444
The position of the new nav item relative to the target nav item. If

0 commit comments

Comments
 (0)