off method
Information noteSTABLE.
This API is reliable and breaking changes are unlikely.
This API is reliable and breaking changes are unlikely.
qlik.off(eventName)
Removes listeners for the generic events.
Version history
Version state | Details |
---|---|
Introduced | Qlik Sense July 2018 |
Parameters
eventName
Type: String
Name of the event. Can be:
- error
- warning
- closed
Removes all listeners if no eventName is provided.
Example
require( ["js/qlik"], function ( qlik ) {
qlik.on( "error", function ( error ) {
$( '#popupText' ).append( error.message + "<br>" );
$( '#popup' ).fadeIn( 1000 );
} );
$( "#closePopup" ).click( function () {
$( '#popup' ).hide();
} );
qlik.off("error");
} );