ThemeManager

ThemeManager

new ThemeManager()

Description:
  • Theme manager class.
Source:

Methods

doApplyTheme(id)

Description:
  • Apply theme with specified id.
Source:
Parameters:
Name Type Description
id

doAttachThemeFile(themename, filenames)

Description:
  • Adds a theme with the given CSS filename and name to the theme table. Default theme will be added automatically during initialization with index 0.
Source:
Parameters:
Name Type Description
themename
filenames

getCurrentThemeID() → {number|*}

Description:
  • Get last applied theme id.
Source:
Returns:
Type
number | *

getThemeList() → {array}

Description:
  • Get contents of theme table.
Source:
Returns:
Type
array

setDefaultThemeName(name)

Description:
  • Sets the name of default theme.
Source:
Parameters:
Name Type Description
name