register()
register(\CGExtensions\jsloader\libdefn $rec)
Register a library definition
Parameters
| \CGExtensions\jsloader\libdefn | $rec | The library definition to register. |
A utility class to manage loading and combining javascript libraries and associated stylesheets.
register(\CGExtensions\jsloader\libdefn $rec)
Register a library definition
| \CGExtensions\jsloader\libdefn | $rec | The library definition to register. |
add_cssfile(string $file, array $depends)
Add a css file to the output.
| string | $file | The filename. If not an absolute path, then search for the file within the current module directory (if any), the uploads path, and then the root path. |
| array | $depends | Array of libraries that this css file depends upon. |