Handles to Native JS Object #7605
-
I have been looking at IJSObject types like RenderingLoopAnimator that have a handle to their JS counterpart. If a C# class like this exposed a method to JS which accepts a native-only JS object, what would that look like? I.e. if I added a method in C# like this so that I could call from JS and maybe pass a jquery object from JS, what would be the correct type for the
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
There's no notion of handle in javacript per say, it's generally a table of IDs and their corresponding javascript objects. If you want to do something similar, you'll have to create a mapping table yourself and use that in the InvokeJS method. |
Beta Was this translation helpful? Give feedback.
There's no notion of handle in javacript per say, it's generally a table of IDs and their corresponding javascript objects. If you want to do something similar, you'll have to create a mapping table yourself and use that in the InvokeJS method.