Skip to content

TEXT

Download Flojoy Studio to try this app
Return a String DataContainer with given input text. Params: value : str The value set in Parameters. Returns: out : String Return the value being set in Parameters.
Python Code
from flojoy import String, flojoy, DataContainer, TextArea
from typing import Optional


@flojoy
def TEXT(
    _: Optional[DataContainer] = None,
    value: TextArea = TextArea("Hello World!"),
) -> String:
    """Return a String DataContainer with given input text.

    Parameters
    ----------
    value : str
        The value set in Parameters.

    Returns
    -------
    String
        Return the value being set in Parameters.
    """

    return String(s=value)

Find this Flojoy Block on GitHub

Example App

Having problems with this example app? Join our Discord community and we will help you out!
React Flow mini map

In this example, a short phrase is entered to TEXT and it get displayed with TEXT_VIEW.