Members
(static) navfile :module:baja/nav/NavFileSpace
NavFileSpace.
Type:
Methods
(static) attach(event, the)
- Description:
Attach an event handler to listen for navigation events.
Please note, navigation events only cover 'add', 'remove', 'renamed' and 'reordered'.
For a list of all the event handlers and some of this method's more advanced
features, please see baja.Subscriber#attach.
- Source:
- See:
Parameters:
| Name | Type | Description |
|---|---|---|
event |
String | handler name. |
the |
function | event handler function. |
(static) detach(hNameopt, funcopt)
- Description:
Detach an Event Handler.
If no arguments are used with this method then all events are removed.
For some of this method's more advanced features, please see baja.Subscriber#detach.
- Source:
- See:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
hName |
String |
<optional> |
the name of the handler to detach. |
func |
function |
<optional> |
the function to remove. It's recommended to supply this just in case |
(static) getHandlers(hName) → {Array}
- Description:
Return an array of event handlers.
To access multiple handlers, insert a space between the handler names.
- Source:
- See:
Parameters:
| Name | Type | Description |
|---|---|---|
hName |
String | the name of the handler |
Returns:
- Type
- Array
(static) hasHandlers(hNameopt) → {Boolean}
- Description:
Return true if there any handlers registered for the given handler name.
If no handler name is specified then test to see if there are any handlers registered at all.
Multiple handlers can be tested for by using a space character between the names.
- Source:
- See:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
hName |
String |
<optional> |
the name of the handler. If undefined, then see if there are any |
Returns:
- Type
- Boolean