Inherited from StaticAnnotation
Inherited from Annotation
Inherited from scala.Any
Inherited by implicit conversion any2stringadd from
native to any2stringadd[native]
Inherited by implicit conversion StringFormat from
native to StringFormat[native]
Inherited by implicit conversion Ensuring from
native to Ensuring[native]
Inherited by implicit conversion ArrowAssoc from
native to ArrowAssoc[native]
Marks the annotated class, trait or object as a native JS entity.
Native JS entities are not implemented in Scala.js. They are facade types for native JS libraries.
In Scala.js 0.6.x, all types extending js.Any are native by default (unless they are annotated with annotation.ScalaJSDefined), but this will not be the case in the next major version anymore.
Only types extending js.Any can be annotated with
@js.native
. The body of all concrete members in a native JS class, trait or object must be= js.native
.