TEXT
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)
Example
Having problems with this example app? Join our Discord community and we will help you out!
In this example, a short phrase is entered to TEXT
and it get displayed with TEXT_VIEW
.