t

fabric.utilities

module_base

trait module_base extends Object

office-ui-fabric-react/lib/Utilities == @uifabric/utilities

Annotations
@JSType() @native()
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. module_base
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val anchorProperties: Array[String]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val baseElementEvents: Array[String]
  7. val baseElementProperties: Array[String]
  8. val buttonProperties: Array[String]
  9. def classNamesFunction[P <: Object, SS <: IStyleSetTag, CN <: IClassNamesTag](): Function2[UndefOr[IStyleFunctionOrObject[P, SS]], UndefOr[P], CN]

    Create a function that takes a function and props, calls that function with the props then calls mergeStyleSets on the result.

    Create a function that takes a function and props, calls that function with the props then calls mergeStyleSets on the result. Weakly typed function signature since scala does not have structural typing. We can do better at some point even without structural typing. This does not work on a straight IStyleSet since that's set as a dictionary (string->IStyle) but instead an object type IStyleSetTag. Ultimately, given a style function or style object and a set of properties that are either input into the style function or are properties to be merged with the first argument if its an object and not a function, return a set of classnames that represent style processing via 'mergeStyleSets'.

    You usually call this inside your component object with a styles function (props=>styles) and properties passed in as props so that they are all merged together to generate your classnames linked to stylesheet styles. You need to tag your js.Object derived traits with IStyleSetTag and IClassNamesTag to drive type recognition.

    You are probably better off just defining your own getClassNames (and memoizing it) and calling mergeStyleSets yourself. Your getClassNames can take a styles (function or object) parameter.

  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  11. def css(various: Any*): String

    string, serializable (has toString), dictionary, null, undefined, boolean...

  12. val divProperties: Array[String]
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def filteredAssign(isAllowed: Function1[String, Boolean], target: Any, args: Any*): Any
  16. def format(s: String, values: Any*): String

    Format using {0} type placement specifiers.

  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def getNativeProps[T <: Object](props: Object, allowedPropNames: Array[String], excludedPropNames: UndefOr[Array[String]] = js.undefined): T

    Set to the type of return value you want.

  19. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. val htmlElementProperties: Array[String]
  22. val imageProperties: Array[String]
  23. val inputProperties: Array[String]
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  26. def memoizeFunction[I, O](f: Function1[I, O]): Function1[I, O]

    This is another tough one to type in scala.js.

    This is another tough one to type in scala.js. If you use a scala function to define f, an implicit will convert it to a js function automatically. Or you can use js.Any.fromFunctionN() to be explicit which you sometimes need to do to get the scala function to js function conversion correct.

  27. def merge[T <: Object](args: |[|[|[|[T, Object], Dynamic], Null], Unit]*): T

    Deep merge.

  28. def mergeScopedSettings(oldeSettings: Settings, newSettings: |[Settings, SettingsFunction]): Settings
  29. def mergeSettings(oldSettings: Settings, newSettings: |[Settings, SettingsFunction]): Settings
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  33. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. val textAreaProperties: Array[String]
  36. def toLocaleString(): String
    Definition Classes
    Object
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. def valueOf(): Any
    Definition Classes
    Object
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped