如何激活flex中的click事件?
<mx:StringValidator source="{ host_txt }" property="text"
tooShortError="This URI is shorter than the minimum allowed length."
minLength="8" trigger="{ connect_btn }" triggerEvent="click"
valid="setupConnection()"/>
如何手动激活{ connect_btn }
的点击事件
?
<mx:StringValidator source="{ host_txt }" property="text"
tooShortError="This URI is shorter than the minimum allowed length."
minLength="8" trigger="{ connect_btn }" triggerEvent="click"
valid="setupConnection()"/>
How to activate the click event
for { connect_btn }
manually?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在此代码中,当
connect_btn
单击时,它开始验证host_txt
中的文本,如果成功则调用setupConnection()
所以,据我所知您的问题是,您想在单击按钮时执行其他操作,如果我理解不正确,请纠正我,您可以通过为 click 属性指定一个值来实现这一点,希望这就是您想要的。
In this code when the
connect_btn
clicked it starts validating the text inhost_txt
and if success invokessetupConnection()
so, as far as i can understand your question you want to do something else when you click the button please correct me if i understand it incorrectly, you do that by giving a value to the click attributehope this is what you want.