如何模式匹配文本区域回调

问题描述 投票:0回答:0

我正在尝试为我创建并存储在 arangoDB 中的文本区域元素创建破折号动态回调,然后能够在输入时打印文本区域的值。

目前,它只返回存储在 arangoDB 中的文本,不会打印我在文本区域中输入的内容

@callback(
    Output('container2', 'children'),
    Input(component_id={'element-type': "html.Textarea", 'element-key': ALL, },
          component_property='children'),
)
def update_output(text):
    print(text)

python callback plotly plotly-dash
© www.soinside.com 2019 - 2024. All rights reserved.