Constructor
new CourseThemeModule()
Extends
- AbstractApiModule
Members
content :ContentModule
- Description:
- Cached module instance for easy access
- Source:
Cached module instance for easy access
Type:
- ContentModule
Methods
applyHandler() → {function}
- Description:
- Handles applying theme settings
- Source:
Returns:
Handler function
- Type
- function
getVariablesString(data, variablesStr) → {string}
- Description:
- Generates a LESS variables string
- Source:
Parameters:
Name | Type | Description |
---|---|---|
data |
object | The data to process |
variablesStr |
string | String memo to allow recursion |
Returns:
The processed LESS varaibles string
- Type
- string
(async) init()
(async) processFileVariables(data)
- Description:
- Copies uploaded font files into the build
- Source:
Parameters:
Name | Type | Description |
---|---|---|
data |
object | The data to process |
removeHandler() → {function}
- Description:
- Handles removing theme settings
- Source:
Returns:
Handler function
- Type
- function
(async) setValues()
(async) writeCustomLess(fwBuild)
- Description:
- Writes the customStyle and themeVariables attributes to LESS files. themeVariables are reduced into a string of variables, in the format `@key: value;`
- Source:
Parameters:
Name | Type | Description |
---|---|---|
fwBuild |
AdaptFrameworkBuild | Reference to the current build |
(async) writeFile(fwBuild, filename, fileContents) → {Promise}
- Description:
- Writes a file to the theme folder
- Source:
Parameters:
Name | Type | Description |
---|---|---|
fwBuild |
Object | Build data |
filename |
String | Name of output file |
fileContents |
String | Contents to be written |
Returns:
- Type
- Promise