shapelets.apps.DataApp.text#

DataApp.text(value: Optional[Union[str, int, float]] = None, title: Optional[str] = None, text_style: Optional[dict] = None, markdown: Optional[bool] = None, **additional) TextWidget#

Creates a Label.

Parameters:
valuestr, int or float, optional

Text value of the widget.

titlestr, optional

Title of the widget.

text_styledict, optional

Text style for the label

markdownbool, optional

Flag to indicate if Label is markdown

Returns:
Label

Examples

>>> text1 = app.text("Hello world!")
>>> text1 = app.text("# Hello world!", markdown = True)

Bind compatibility

You can bind this widget with this:

  • str

  • int

  • float

  • text()

  • datetime

Bindable as

You can bind this widget as: