-
Notifications
You must be signed in to change notification settings - Fork 89
1.12 Themes
koalyptus edited this page Jun 11, 2015
·
1 revision
The themes manager provides a mechanism for loading stylesheets asynchronously.
| Property | Type | Description | Remarks | Example |
|---|---|---|---|---|
| themes | array |
an array of literal objects describing the stylesheets to be imported. Below a list of the available properties:
|
var tfConfig = { themes: [{ name:'stylesheet01', path:'path/to/style01.css'}, { name:'stylesheet02', path:'path/to/style02.css'}] } |
|
| enable_default_theme | boolean | if set true, it will load the default theme located in the style/themes/default/
folder (default - false) |
Default stylesheet name: default.css
|
var tfConfig = { enable_default_theme: true } |
| themes_path | string | defines an alternative path to the script's themes (default - style/themes/) |
The folder that contains the script's stylesheets and images | var tfConfig = { themes_path: 'myThemes/' } |
| msg_load_themes | string | text displayed when a stylesheets is loaded (default - 'Loading theme(s)...') | var tfConfig = { msg_load_themes: 'Loading my stylesheets..'
} |