output_widget

output_widget function

Create an output container for a Shiny widget (i.e., a placeholder for an ipywidget rendered by a shinywidgets render decorator).

Usage Source

output_widget(
    id: str,
    *,
    width: Optional[str] = None,
    height: Optional[str] = None,
    fill: Optional[bool] = None,
    fillable: Optional[bool] = None,
)

Place this in the UI wherever the widget should appear, and use the matching id on the corresponding render decorator (e.g., render_widget(), render_plotly()) in the server function.

Parameters

id : str

An output id, matching the id of the render decorator that fills this output.

width : Optional[str] = None

A CSS length unit (e.g., "400px" or "100%") for the output’s width.

height : Optional[str] = None

A CSS length unit for the output’s height. When None (the default), the output is designed to fill the height of its parent container (see fill and fillable).

fill : Optional[bool] = None

Whether the output should grow or shrink to fit its parent container. When None (the default), this is True if height is not specified.

fillable : Optional[bool] = None

Whether the output container should fill available space (scrolling its contents on overflow). When None (the default), this is True if height is not specified.

While :
the :
effect :
output :
its :

Returns

: Tag

A UI tag suitable for inclusion in the app’s UI definition.