Skip to content

Support optional arguments in the javascript bindings #195

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

Merged
merged 3 commits into from
Jul 25, 2023

Conversation

edkilday
Copy link
Collaborator

All javascript to call functions which have optional arguments with default values. For instance where z is an optional argument.

obj.method(z);
obj.method();

The XML interface definition would be as follows.

<method name="method"
  <param name="z" optional="true" defaultvalue="10"

@martinweismann martinweismann merged commit 38bbc57 into Autodesk:JSImpl Jul 25, 2023
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

Successfully merging this pull request may close these issues.

2 participants