如何创建没有输出的 Dash 回调?

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

在 Dash 中,输出需要有回调,但是如果你想在后端触发事件,而前端没有任何输出,该怎么办?

python plotly-dash
2个回答
0
投票

添加布局中不存在的

Output
component_id
并设置
component_property='children'

@callback(
    Output('none', 'children'),
    ...
)...

0
投票

社区长期以来一直要求不带输出的回调,并且可以从 dash 版本 2.17.0 (2024-05-03) 开始使用,请参阅变更日志以及版本2.17.1中的修复。

© www.soinside.com 2019 - 2024. All rights reserved.