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

How to call pseudo code? #29

Closed
wowoName opened this issue Sep 3, 2019 · 7 comments
Closed

How to call pseudo code? #29

wowoName opened this issue Sep 3, 2019 · 7 comments

Comments

@wowoName
Copy link

wowoName commented Sep 3, 2019

Can I access methods from the module function set in the project externally

Let's say I embed a project in an iframe and then access a module function set method through an external project

@linb
Copy link
Owner

linb commented Sep 3, 2019

If you have a button which alias is xui_uibtn, you can call it like this:
iframe_window._xui_root.xui_ui_btn.setCaption("Hi");

@wowoName
Copy link
Author

wowoName commented Sep 3, 2019

Thank you very much
Can I call the corresponding method directly
Like : iframe_window.xui_***.functionName ()

@linb
Copy link
Owner

linb commented Sep 3, 2019

Sure, you can call any method when you get the corresponding instance

@wowoName
Copy link
Author

wowoName commented Sep 4, 2019

Thank you very much. You can now call the built-in methods

But I still can't use: frame_window.xui_***. MyFun () to implement custom methods in module function set
1567587900(1)

@linb
Copy link
Owner

linb commented Sep 4, 2019

To exec the pseudo code:
xui.pseudocode._callFunctions(_xui_root.functions.setFormValue, ['name', 'age'], _xui_root)

@wowoName
Copy link
Author

wowoName commented Sep 4, 2019

thank you very much!!!

@linb linb changed the title hello How to call pseudo code? Sep 10, 2019
@linb
Copy link
Owner

linb commented Sep 10, 2019

We just added "applyPseudo" in xui.Module.

@linb linb closed this as completed Sep 10, 2019
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