Class ComponentStypDomFormat

Component's DOM style production format.

Renders CSS styles as text.

This format is generally slower than ComponentStypObjectFormat, but allows to render styles before element is connected to document.

Hierarchy

Constructors

Properties

context: ComponentContext<any>

Target component context.

when: "connected" | "settled"

When to start component style rendering.

One of: settled (the default) - to start rendering when component is settled. connected - to start rendering when component's element is connected to document.

Methods

  • Creates component's CSS stylesheets producer based on the given CSS rules.

    Utilizes ComponentStyleProducer.

    Returns

    CSS rules producer function returning CSS rules supply. Once cut off the produced stylesheets are removed.

    Parameters

    • rules: Source

      A source of CSS rules to produce stylesheets for.

    • Optional config: ComponentStypFormatConfig

      Style production format configuration.

    Returns ((this: void) => Supply)

      • (this: void): Supply
      • Creates component's CSS stylesheets producer based on the given CSS rules.

        Utilizes ComponentStyleProducer.

        Returns

        CSS rules producer function returning CSS rules supply. Once cut off the produced stylesheets are removed.

        Parameters

        • this: void

        Returns Supply

Generated using TypeDoc