Packages

class native extends Annotation with StaticAnnotation

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.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. native
  2. StaticAnnotation
  3. Annotation
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new native()