Skip to content

Commit ec17f94

Browse files
committed
extra statement about ui function and id namespacing
1 parent 7babeea commit ec17f94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shiny/module.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def ui(fn: Callable[P, R]) -> Callable[Concatenate[str, P], R]:
2929
"""Decorator for defining a Shiny module UI function.
3030
3131
This decorator allows you to write the UI portion of a Shiny module.
32+
When your decorated `ui` function is called with an `id`,
33+
the UI elements defined within will automatically be namespaced using that `id`.
3234
This enables reuse of UI components and consistent input/output handling
3335
when paired with a `@module.server` function.
3436

0 commit comments

Comments
 (0)