Skip to content

Commit 0c39dd1

Browse files
committed
Update _renderer.py
1 parent 437793a commit 0c39dd1

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

shiny/render/renderer/_renderer.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,15 @@ class Renderer(Generic[IT]):
8888
used!)
8989
9090
There are two methods that must be implemented by the subclasses:
91-
`.auto_output_ui(self, id: str)` and either `.transform(self, value: IT)` or
92-
`.render(self)`.
91+
`.auto_output_ui(self)` and either `.transform(self, value: IT)` or `.render(self)`.
9392
9493
* In Express mode, the output renderer will automatically render its UI via
95-
`.auto_output_ui(self, id: str)`. This helper method allows App authors to skip
96-
adding a `ui.output_*` function to their UI, making Express mode even more
97-
concise. If more control is needed over the UI, `@ui.hold` can be used to suppress
98-
the auto rendering of the UI. When using `@ui.hold` on a renderer, the renderer's
99-
UI will need to be added to the app to connect the rendered output to Shiny's
100-
reactive graph.
94+
`.auto_output_ui(self)`. This helper method allows App authors to skip adding a
95+
`ui.output_*` function to their UI, making Express mode even more concise. If more
96+
control is needed over the UI, `@ui.hold` can be used to suppress the auto
97+
rendering of the UI. When using `@ui.hold` on a renderer, the renderer's UI will
98+
need to be added to the app to connect the rendered output to Shiny's reactive
99+
graph.
101100
* The `render` method is responsible for executing the value function and performing
102101
any transformations for the output value to be JSON-serializable (`None` is a
103102
valid value!). To avoid the boilerplate of resolving the value function and

0 commit comments

Comments
 (0)