Skip to content

Commit acde8d8

Browse files
committed
Explain how to prepend/append
1 parent 9048478 commit acde8d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

shiny/ui/_navs_dynamic.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ def nav_insert(
4646
:func:`~shiny.ui.nav_menu`.
4747
target
4848
The ``value`` of an existing :func:`shiny.ui.nav` item, next to which tab will
49-
be added.
49+
be added. Can also be ``None``; see ``position``.
5050
position
51-
The position of the new nav item relative to the target nav item.
51+
The position of the new nav item relative to the target nav item. If
52+
``target=None``, then ``"before"`` means the new nav item should be inserted at
53+
the head of the navlist, and ``"after"`` is the end.
5254
select
5355
Whether the nav item should be selected upon insertion.
5456
session

0 commit comments

Comments
 (0)