from pywebio import *
from pywebio.output import *
from pywebio.pin import *
def onchange(*args, **kwargs):
toast("modified")
pin_on_change("test", onchange=onchange, clear=True)
put_input("test", label="test") |
Answered by
wang0618
Jun 7, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

目前pywebio没有提供这样的api,不过如果你了解前端技术,你可以参考 #273 来通过js实现在输入框丧失焦点后回调python函数