StaticText#

This component is also available in the classic reference.

The StaticText widget displays a text value, but does not allow editing it.

Use pn.ui.StaticText to create this component.

API#

.. py:class:: StaticText(**params: ~typing.Any) :module: panel.widgets.input

The StaticText widget displays a text value, but does not allow editing it.

Reference: https://panel.holoviz.org/reference/widgets/StaticText.html

:Example:

StaticText(name=’Model’, value=’animagen2’)

:Attributes:

   **value**
       ..

.. !! processed by numpydoc !!

Parameter Definitions


Parameters inherited from:

   :class:`panel.widgets.base.WidgetBase`: label

   :class:`panel.viewable.Layoutable`: align, aspect_ratio, css_classes, design, min_width, min_height, max_width, max_height, styles, stylesheets, tags, width_policy, height_policy, sizing_mode, visible

   :class:`panel.viewable.Viewable`: loading

   :class:`panel.widgets.base.Widget`: height, margin, width, disabled

value = Parameter(allow_None=True, label='Value')

    The current value to be displayed.