<On> tag - RichTextbox

Please someone help with an example how to use the On tag of RichText box
<on click="handler"> click me! </on>

cocos creator - 2.4.3

I can ask engineering to have a look.


This can be used on richtext components using the

<on click="myTest"> click me!</on>

Then create a new typescript script and define a myTest function inside the class.

I provide a simple demo that you can use as a reference
NewProject_4.zip (235.5 KB)

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.