Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onLeft() or onRight() use compoent function? #2121

Closed
shiqian123 opened this issue Jul 27, 2017 · 4 comments
Closed

onLeft() or onRight() use compoent function? #2121

shiqian123 opened this issue Jul 27, 2017 · 4 comments

Comments

@shiqian123
Copy link

shiqian123 commented Jul 27, 2017

If this method is inside the component, is there a way to call it? with onRight,

@aksonov
Copy link
Owner

aksonov commented Jul 27, 2017

Yes, just define them as static

@shiqian123
Copy link
Author

shiqian123 commented Jul 27, 2017

like this?
@aksonov
login compoent have test11 function,I want used in onLeft
875ed1a4-4a7e-4462-9fde-18cf0181a5f1

95b7f533-1b29-4178-933f-154391336fd7

@aksonov
Copy link
Owner

aksonov commented Jul 27, 2017

Just rename it to onLeft (no need to set it on Scene).

@shiqian123
Copy link
Author

oh ,thanks

@aksonov aksonov closed this as completed Jul 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants