Skip to main content

What’s New

Qrvey 8.7
Version 8.7 of the Qrvey platform is now available to customers! This version includes new features including area charts, the ability to pivot and export data, as well as numerous bug fixes and performance improvements.
Learn More
Qrvey 8.6
Version 8.6 of the Qrvey platform is now available to customers. This version includes several new feature enhancements and performance improvements.
Learn More
Required Update for 8.5.1
Attention 8.5.1 customers: for any 8.5.1 instance deployed prior to 08/05/2024, an update is required to ensure you are running the latest images.
Learn More
Qrvey 8.5
Version 8.5 (LTS) of the Qrvey platform is now available to customers. This version includes several new features and performance improvements.
Learn More
End-of-life Schedule
We've added a new article that lists the features and endpoints that have been scheduled for deprecation. All features and endpoints will be supported for (1) year after the release date of the LTS version that contains the alternative.
Learn More
Version: 8.4

Using Custom Events

Custom events enable Qrvey Software Developers to handle custom scenarios. This article describes several custom events that can be triggered by Qrvey widgets. The host application can be programmed to listen to these events and then perform its own custom tasks.

To use a custom event:

  1. Create the event using the CustomEvent() constructor.
  2. Listen to this event using the addEventListener() method.
  3. Trigger or dispatch the event using the document.dispatchEvent(eventName) method.

The Dashboard Builder and Dashboard View widgets support the following custom events:

  • Dashboard Loaded Event
  • Items Loaded Event

Dashboard Loaded Event

The Dashboard Loaded event (qvDSHPageLoaded) is emitted when the dashboard is loaded (and the “loading” spinner is no longer displayed) in the Dashboard Builder or Dashboard View widget.

// To assign the event
const event = new CustomEvent('qvDSHPageLoaded');

// To trigger the event listener
document.addEventListener(“qvDSHPageLoaded”, () => {
// Do Something
});

// To trigger the event
document.dispatchEvent(event);

Items Loaded Event

The Items Loaded event (qvDSHItemsLoaded) is emitted when all charts in the viewable area have rendered (and their corresponding “loading” spinners are no longer displayed) in the Dashboard Builder or Dashboard View widget.

// To assign the event
const event = new CustomEvent('qvDSHItemsLoaded');
// To trigger the event listener
document.addEventListener(“qvDSHItemsLoaded”, () => {
// Do Something
});

// To trigger the event
document.dispatchEvent(event);