• Unloads a CSS file that was previously loaded with loadStyleSheet.

    Parameters

    • path: string

      The relative path to the CSS file to unload. This should match the path used when the style sheet was loaded with loadStyleSheet.

    Returns void

    Remarks

    This function can only unload style sheets that were loaded using the loadStyleSheet function. It identifies the style sheet to unload based on the provided relative path.

    The base directory for the relative path is <portal>/external/htmlroot/.

    Example

    // Unloads the CSS file located at "css/myCSS.css" relative to "<portal>/external/htmlroot/"
    ix.api.dom.unloadStyleSheet("css/myCSS.css");