📝 (StringListOutput.py): update parameter name from "param" to "input_value" to improve clarity and consistency 📝 (index.tsx): add InputListComponent to handle StringListInput and StringListOutput components in IOFieldView 📝 (index.tsx): update InputListComponent props to include value, onChange, disabled, and playgroundDisabled 📝 (index.tsx): update IOFieldView to render InputListComponent for StringListInput and StringListOutput components
13 lines
No EOL
455 B
Python
13 lines
No EOL
455 B
Python
# from langflow.field_typing import Data
|
|
from langflow.schema import Record
|
|
from langflow.interface.custom.custom_component import CustomComponent
|
|
|
|
|
|
class StringListOutput(CustomComponent):
|
|
display_name = "String List Output"
|
|
|
|
def build_config(self):
|
|
return {"input_value": {"display_name": "String List Output", "field_type": "str", "list": True}}
|
|
|
|
def build(self, input_value: list) -> Record:
|
|
return Record(data=input_value) |