Class blade.config.Themes
Object
|
+--blade.config.Themes
- class
blade.config.Themes
Handler for theme state changes. Themes register their state-change handlers
with the themes object, which then calls the appropriate handler when it is notified
of a state change.
Defined in common.js
Method Summary |
function
|
addHandler(component, theme, state, handler)
Adds a handler
|
function
|
set(component, id, theme, state)
Calls the relevant state-change handler
|
blade.config.Themes
function blade.config.Themes()
addHandler
function addHandler(component, theme, state, handler)
Parameters:
handler
- function to execute on a state-change
set
function set(component, id, theme, state)
Calls the relevant state-change handler
Parameters:
theme
- target element's theme
state
- target element's new state