trait module_base extends Object
office-ui-fabric-react/lib/Utilities == @uifabric/utilities
- Annotations
- @JSType() @native()
- Alphabetic
- By Inheritance
- module_base
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val anchorProperties: Array[String]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val baseElementEvents: Array[String]
- val baseElementProperties: Array[String]
- val buttonProperties: Array[String]
- 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 typeIStyleSetTag
. 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 callingmergeStyleSets
yourself. Your getClassNames can take a styles (function or object) parameter. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def css(various: Any*): String
string, serializable (has toString), dictionary, null, undefined, boolean...
- val divProperties: Array[String]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def filteredAssign(isAllowed: Function1[String, Boolean], target: Any, args: Any*): Any
- def format(s: String, values: Any*): String
Format using {0} type placement specifiers.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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.
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val htmlElementProperties: Array[String]
- val imageProperties: Array[String]
- val inputProperties: Array[String]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- 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. - def merge[T <: Object](args: |[|[|[|[T, Object], Dynamic], Null], Unit]*): T
Deep merge.
- def mergeScopedSettings(oldeSettings: Settings, newSettings: |[Settings, SettingsFunction]): Settings
- def mergeSettings(oldSettings: Settings, newSettings: |[Settings, SettingsFunction]): Settings
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val textAreaProperties: Array[String]
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])