Packages

o

fabric

merge_styles

object merge_styles extends Object with MergeStyles

Annotations
@native() @JSImport("@uifabric/merge-styles", JSImport.Namespace)
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. merge_styles
  2. MergeStyles
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val Stylesheet: Stylesheet

    Access the stylesheet created by fabric.

    Access the stylesheet created by fabric.

    Definition Classes
    MergeStyles
  2. def concatStyleSets[T <: Object](styleSets: IStyleSet*): T

    Combine styles together but do not register the styles in a stylesheet.

    Combine styles together but do not register the styles in a stylesheet. This is useful for combining different sets of styles, like a base and something more specific, inside of a function that computes styles but you want the output to be a (string -> style) mapping still. Last argument has higher precedence.

    T

    js object with mappings between properties and "string" class names. See IProcessedStyleSet in typescript.

    Definition Classes
    MergeStyles
  3. def concatStyleSetsWithProps[SP <: Any](props: SP, styleSets: StyleSetArg*): IStyleSet

    Combine styles together but allow style functions or props.

    Combine styles together but allow style functions or props. IStyleSet refers to a js object that has properties whose values are IStyle objects.

    Definition Classes
    MergeStyles
  4. def fontFace(font: FontFace): Unit

    Register a font face.

    Register a font face.

    Definition Classes
    MergeStyles
  5. def getVendorSettings(): IVendorSettings
    Definition Classes
    MergeStyles
  6. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  7. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  8. def keyframes(timeline: Object): String

    Register key frames.

    Register key frames. Keys are typically "from" and "to".

    Definition Classes
    MergeStyles
  9. def mergeStyleSets[T <: Any](styleSets: IStyleSet*): T

    Merge style sets and register in a stylesheet.

    Merge style sets and register in a stylesheet. js.Object is included to allow "partial" T's to be passed in. It is not possible to ensure that all keys in T are defined based on the input parameters alone. This is the primary way to convert "code" to "styles" in the DOM. Generally, this function is called inside a getClassNames(...) type function specific to each component. The return value is typically a js.native trait whose member values are the string names of the styles that were registered (string -> classname string).

    Definition Classes
    MergeStyles
  10. def mergeStyles(styles: |[IStyle, Array[IStyle]]*): String

    Merge styles and register in a stylesheet.

    Merge styles and register in a stylesheet. Return the "css" mangled name you use as the attribute "className" in your components. You probably want to use a style set and mergeStyleSets to push a bunch of styles to the stylesheet at one time.

    Definition Classes
    MergeStyles
  11. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  12. def toLocaleString(): String
    Definition Classes
    Object
  13. def unsafeConcatStyleSetsWithProps[SP <: Any](props: SP, styleSets: Any*): IStyleSet
    Definition Classes
    MergeStyles
    Annotations
    @JSName("concatStyleSetsWithProps")
  14. def valueOf(): Any
    Definition Classes
    Object