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

using C# property/field in Javascript .net #94

Open
Hajer10 opened this issue Mar 24, 2017 · 1 comment
Open

using C# property/field in Javascript .net #94

Hajer10 opened this issue Mar 24, 2017 · 1 comment
Labels

Comments

@Hajer10
Copy link

Hajer10 commented Mar 24, 2017

hi, I was trying to find a way to link my property in a function of javascript, is it possible to di that?

@paulbartrum
Copy link
Owner

paulbartrum commented Mar 27, 2017

Yes, there is a [JSProperty] attribute that you can use in the same way as [JSMethod].

See https://github.com/paulbartrum/jurassic/wiki/Exposing-a-.NET-class-to-JavaScript for an example of [JSMethod].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants