Marks the annotated method as representing bracket access in JavaScript.
Marks the annotated method as representing bracket call in JavaScript.
Marks the annotated method as representing bracket call in JavaScript.
Specifies that the given entity should be exported for use in raw JS.
Specifies that the given entity should be exported for use in raw JS.
Exports all public members directly defined in a class / object.
Exports all public members directly defined in a class / object.
Strictly equivalent to putting JSExport on every public member. Note: You are allowed to export protected members, but you'll have to do this explicitly on each member.
Specifies that all the concrete classes extending the annotated class or should have all their public constructors exported for use in raw JS.
Specifies that all the concrete classes extending the annotated class or should have all their public constructors exported for use in raw JS. The constructors exported this way are exported under their fully qualified name.
Specifies that all the objects extending the annotated class or trait should be exported for use in raw JS.
Specifies that all the objects extending the annotated class or trait should be exported for use in raw JS. Note that objects exported this way are exported under their fully qualified name.
Exports the given method to JavaScript with named parameters.
Exports the given method to JavaScript with named parameters.
It can then be called like this:
obj.foo({ param1: value1 param2: value2 param7: value3 });
Note that named exports don't support overloading. Therefore the following will fail:
class A { @JSExportNamed def a(foo: Int) = foo + 1 @JSExportNamed def a(bar: String) = "Hello " + bar }
Specifies the JavaScript name of an entity.
Specifies the JavaScript name of an entity.
Marks the annotated class, trait or object as a raw JavaScript type.
Marks the annotated class, trait or object as a raw JavaScript type.
This annotation is added automatically by the compiler to all classes, traits and objects inheriting directly or indirectly from scala.scalajs.js.Any. It marks the annotated entity as being a raw JavaScript type, i.e., one that represents type information for an entity defined in JavaScript code.
Do not use this annotation yourself.
Marks the annotated method as representing bracket access in JavaScript.
Calling JavaScript from Scala.js