Packages

a

react

deriveClassNames

macro class deriveClassNames extends Annotation with StaticAnnotation

Projection of a Styles object to a ClassNames trait. This is specific to fabric styling but essentially ignores the type anyway so it could be used elsewhere. No check is performed to make sure you are annotating a Styles object. A styles object has only var members with types js.UndefOr[IStyle] and initial value js.undefined. The macro does not search superclasses (yet).

Annotations
@compileTimeOnly("Enable macros -Ymacro-annotations (2.13+) to expand macro annotation")
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. deriveClassNames
  2. StaticAnnotation
  3. Annotation
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new deriveClassNames()

Value Members

  1. macro def macroTransform(annottees: Any*): Any