Package

scalacss.internal

mutable

Permalink

package mutable

Visibility
  1. Public
  2. All

Type Members

  1. final class Mutex extends AnyRef

    Permalink
  2. final class Register extends AnyRef

    Permalink

    TODO Doc & test MutableRegister and friends inc.

    TODO Doc & test MutableRegister and friends inc. Style[FC]

    Performs magic using mutability and side-effects so that ........

    Thread-safe.

  3. trait Settings extends AnyRef

    Permalink
  4. class StyleSheetRegistry extends AnyRef

    Permalink

Value Members

  1. object GlobalRegistry extends StyleSheetRegistry

    Permalink

    An optional convenience for working with inline stylesheets.

    An optional convenience for working with inline stylesheets.

    Ideally inline stylesheet modules should either be merged into a single app-wide object, or passed around like normal dependencies.

    If that is unpalatable to your circumstances or preferences, you can instead register style modules with this global registry, and have client-code retrieve modules from this global registry by type.

    class BoxStyles extends StyleSheet.Inline {
      ...
    }
    
    // Register
    GlobalRegistry.register(new BoxStyles)
    
    // Retrieve
    val boxStyles = GlobalRegistry[BoxStyles].get
  2. object Mutex

    Permalink
  3. object Register

    Permalink
  4. object Settings

    Permalink
  5. object StyleSheet

    Permalink

    Mutable StyleSheets provide a context in which many styles can be created using a DSL.

    Mutable StyleSheets provide a context in which many styles can be created using a DSL.

    They are mutable because they maintain a list of registered styles, meaning you can declare each style one at a time instead of having to create a list of styles in a single expression.

    Each style itself is immutable.

Ungrouped