Jump to content
uniGUI Discussion Forums
Sign in to follow this  
qpash

OnClick in UniMLabel

Recommended Posts

I am setting an OnClick event for a TunimLabel but it is not firing.

 

Code not work:

UnimLabel1 -> ClientEvents -> UniEvents -> function afterCreate:

function afterCreate(sender) 
{
    var me = sender;
    me.element.on("tap",
        function() {
            me.fireEvent("click");
        }
    )
}

 

Use licensed version

Version:1.50.0 build 1480

 

Share this post


Link to post
Share on other sites
function afterCreate(sender)
{
    var me = sender;
    me.element.on("tap",
        function() {
            me.fireEvent("click", me);
        }
    );
}

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×