core/events
Internal implementation of global event handling.
- core/events
- static
- .dispatchCoreEvent(type, context)
- .getUluEventName(type) ⇒
String - .getCoreEventName(type) ⇒
String|null - .createUluEvent(type, data, options) ⇒
CustomEvent
- inner
- static
core/events.dispatchCoreEvent(type, context)
Triggers one of the predefined core lifecycle events.
Kind: static method of core/events
| Param | Type | Description |
|---|---|---|
| type | String |
Type of core event to dispatch. |
| context | Node |
Element to trigger the event from. |
core/events.getUluEventName(type) ⇒ String
A general-purpose utility to get a ULU-namespaced event name.
Kind: static method of core/events
Returns: String - The ulu: prefixed event name.
| Param | Type | Description |
|---|---|---|
| type | String |
The base name for the event. |
core/events.getCoreEventName(type) ⇒ String | null
Safely gets the full namespaced name for a predefined core event.
Kind: static method of core/events
Returns: String | null - The full event name if valid, otherwise null.
| Param | Type | Description |
|---|---|---|
| type | String |
The base name of the core event (e.g., 'pageModified'). |
core/events.createUluEvent(type, data, options) ⇒ CustomEvent
A general-purpose utility to create a ULU-namespaced CustomEvent.
Kind: static method of core/events
| Param | Type | Description |
|---|---|---|
| type | String |
Event base name. |
| data | any |
Custom data to pass with the event. |
| options | Object |
CustomEvent options. |
core/events~events
Event object - called on dispatch
Kind: inner constant of core/events
core/events~initResize()
Setup resize handler/dispatch
Kind: inner method of core/events
core/events~initPrint()
Setup print listeners
Kind: inner method of core/events