Create: {
    document?: Document;
    id: string;
    layerName?: string;
    rules: RulesConfig;
    version: string;
    warn?: boolean;
}

Options for StyleManager.create.

Type declaration

  • Optionaldocument?: Document

    Target document to load styles into.

    window.document

  • id: string

    Required CSS ID providing a link to a specific style sheet element.

  • OptionallayerName?: string

    Optional CSS layer name defining the top level CSS layer containing all rules.

  • rules: RulesConfig

    CSS Rules configuration. Rule name / selector.

  • version: string

    Required semver string without wildcards / version ranges representing the version / level of styles being managed.

  • Optionalwarn?: boolean

    When true, log warnings on why creation failed.

    false