Skip to content
🚀 Rapid Application Development with the App Builder

loadStyle(fileName, styleId)

Dynamically loads a CSS file.

Scope: onAppOpen

Parameters

ParameterTypeDescription
fileNamestringURL to CSS file.
styleId (optional)stringUse 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")
	
})