Members
-
logger :NexusHoratio.base.Logger
-
Details
-
name :string
-
Details
-
shortName :string
-
Details
Methods
-
activate()
-
Description
Called each time service is activated.
Fires
Details
-
deactivate()
-
Description
Called each time service is deactivated.
Fires
Details
-
on( eventType, func ) → {NexusHoratio.base.Service}
-
Description
Attach a function to an eventType.
Parameters
Name Type Description eventTypeNexusHoratio.base.Dispatcher~EventType Event type to connect with.
funcNexusHoratio.base.Dispatcher~Handler Single argument function to call.
Returns
Details
-
off( eventType, func ) → {NexusHoratio.base.Service}
-
Description
Remove all instances of a function registered to an eventType.
Parameters
Name Type Description eventTypeNexusHoratio.base.Dispatcher~EventType Event type to disconnect from.
funcNexusHoratio.base.Dispatcher~Handler Function to remove.
Returns
Details
-
allowReactivation( allow ) → {NexusHoratio.base.Service}
-
Parameters
Name Type Description allowboolean Whether to allow this service to be activated when already active.
Returns
Details
-
setShortName( shortName ) → {NexusHoratio.base.Service}
-
Parameters
Name Type Description shortNamestring Custom name portion of this instance.
Returns
Details
Type Definitions
-
ElementMap
-
Details
-
StyleProperties
-
Description
CSS style properties.
Details
-
Finder() → {NexusHoratio.web.StyleService~ElementMap}
-
Description
Function that finds DOM elements.
Returns
Details
-
ElementsProcessor( elements ) → {NexusHoratio.web.StyleService~StyleProperties}
-
Description
Function that examines multiple elements to compute a style.
Parameters
Name Type Description elementsNexusHoratio.web.StyleService~ElementMap Elements to examine.
Returns
Details
-
Config
-
Properties
Name Type Attributes Default Description classNamestring Name for the class to control.
finderNexusHoratio.web.StyleService~Finder Function to find the elements to monitor.
elementsProcessorNexusHoratio.web.StyleService~ElementsProcessor Function that examines multiple elements to compute a style.
eventsArray.<string> <optional> [] List of Element events to listen to on the elements.
Details
Events
-
activate
-
Details
-
activated
-
Details
-
deactivate
-
Details
-
deactivated
-
Details