清泛IT社区

标题: ClickTools 拓展:为布局、标签等没有点击事件的组件添加点击事件 [打印本页]

作者: App Inventor 2     时间: 3 天前
标题: ClickTools 拓展:为布局、标签等没有点击事件的组件添加点击事件

Blocks
[size=15.008px]


[size=15.008px][color=var(--tertiary)][color=var(--secondary)]blocks (2)[color=var(--secondary-high)]499×533 28.5 KB

Documentation -

component ~ component
id ~ int (number)


id ~ id you used for your registered component
Use this event to set blocks of component click.


error ~ It returns the error if something went wrong
Use this event to do something after error occured
[color=var(--primary-high-or-secondary-low)][backcolor=var(--blend-primary-secondary-5)]
Techno_Vedang:

component ~ component
It performs click of component without clicking that component. It can be done using procedures also still I thought to add it to extension.

Now it is possible to do long click of component.

[size=15.008px] IMPORTANT
If you register button or another clickable components then the built in .Click event will not work
See here
[color=var(--primary-high-or-secondary-low)][backcolor=var(--blend-primary-secondary-5)]
Anke:
if a component has been registered, the original .Click event (e.g. Button.Click ) will no longer be executed.


注:通过拓展添加了点击事件后,原来已有的点击事件将不再触发。


https://community.appinventor.mi ... ew-components/18069





欢迎光临 清泛IT社区 (https://bbs.tsingfun.com/) Powered by Discuz! X3.3