String#
The String indicator renders a string with a title.
Use pn.ui.String to create this component.
API#
.. py:class:: String(*, default_color, font_size, title_size, disabled, loading, align, aspect_ratio, css_classes, design, height, height_policy, margin, max_height, max_width, min_height, min_width, sizing_mode, styles, stylesheets, tags, visible, width, width_policy, label, value, name) :module: panel.widgets.indicators
The String indicator renders a string with a title.
: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, visible
:class:`panel.viewable.Viewable`: loading
:class:`panel.widgets.base.Widget`: height, margin, width, disabled
:class:`panel.widgets.indicators.Indicator`: sizing_mode
value = String(allow_None=True, label='Value')
The string to display
default_color = String(default='currentcolor', label='Default color')
The color of the indicator if no colors are provided
font_size = String(default='54pt', label='Font size')
The size of number itself.
title_size = String(default='18pt', label='Title size')
The size of the title given by the label.