Appearance
loadStyle(fileName, styleId)
Dynamically loads a CSS file.
Scope:
onAppOpen
Parameters
| Parameter | Type | Description |
|---|---|---|
| fileName | string | URL to CSS file. |
| styleId (optional) | string | Use to prevent multiple file loads. |
Return Value
None
✨ Example of a onAppOpen Hook
js
(() => {
// Make sure the given path exists and is accessible:
loadScript("/path/my-js-functions.js", "myJsFunctions")
loadStyle("/path/my-style.css", "myCss")
})