Methods
clear()
Clears the rendered result.
destroy()
Destroys the instance and release its resources.
emit(event, data)
Triggers an event. All handlers that are listening for this event will be triggered with the data parameter.
Parameters:
Name | Type | Description |
---|---|---|
event |
* | The event name that should be triggered |
data |
* | Arbitrary data that will be passed to the event handler callback functions |
getApi() → {Object}
Public API
Returns:
- object of api functions
- Type
- Object
initializeRender()
Initializes the Section Renderer.
isRendered() → {boolean}
Is Rendered
Returns:
- Type
- boolean
off(event, handler)
Remove a subscription.
Parameters:
Name | Type | Description |
---|---|---|
event |
Event to remove subscription from |
|
handler |
Callback to remove |
on(event, handler)
Subscribe to an event.
Parameters:
Name | Type | Description |
---|---|---|
event |
* | Event to subscribe to |
handler |
* | Callback function |
render(data, query)
Renders the Result.
Parameters:
Name | Type | Description |
---|---|---|
data |
* | |
query |
* |