<On> tag - RichTextbox

Hi
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.

https://docs.cocos.com/creator/manual/en/components/richtext.html#supported-tags

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.