Function requiresCSS

  • Includes a Cascading Style Sheet (CSS) file into the page. If the file was already included by some other code, this function will simply ignore the call. This may be used to include CSS files defined in your module's web/ directory.

    Parameters

    • filePath: string

      The path to the script file to include. This path should be relative to the web application root. So for example, if you wanted to include a file in your module's web/mymodule/styles/ directory, the path would be "mymodule/styles/mystyles.css"

    Returns void