1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-03 07:03:33 +02:00
1 1.12 Themes
koalyptus edited this page 2015-06-11 23:52:01 +10:00

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:

  • name defines the names of the stylesheets to be loaded (array of strings ['name1', 'name2'])
  • path defines the path of the stylesheets to be imported.
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..' }