Skip to content

Event Handlers

Fatih Koca edited this page Nov 27, 2019 · 1 revision

Common Events

vueajaxabort

Register a handler to be called when Vue.ajax requests abort.

window.addEventListener("vueajaxabort", function(e) {
    console.log(e);
});

vueajaxcomplete

Register a handler to be called when Vue.ajax requests complete.

window.addEventListener("vueajaxsuccess", function(e) {
    console.log(e);
});

vueajaxerror

Register a handler to be called when Vue.ajax requests complete with an error.

window.addEventListener("vueajaxerror", function(e) {
    console.log(e);
});

vueajaxstart

Register a handler to be called when Vue.ajax requests begins.

window.addEventListener("vueajaxstart", function(e) {
    console.log(e);
});

vueajaxsuccess

Attach a function to be executed whenever an Vue.ajax request completes successfully.

window.addEventListener("vueajaxsuccess", function(e) {
    console.log(e);
});

History Events

vueajaxhistorycomplete

Register a handler to be called when Vue.ajax history requests complete.

window.addEventListener("vueajaxhistorycomplete", function(e) {
    console.log(e);
});

vueajaxhistoryerror

Register a handler to be called when Vue.ajax history requests complete with an error.

window.addEventListener("vueajaxhistoryerror", function(e) {
    console.log(e);
});

vueajaxhistorystart

Register a handler to be called when Vue.ajax history requests begins.

window.addEventListener("vueajaxhistorystart", function(e) {
    console.log(e);
});

vueajaxhistorysuccess

Attach a function to be executed whenever an Vue.ajax history request completes successfully.

window.addEventListener("vueajaxhistorysuccess", function(e) {
    console.log(e);
});

Component Shifter Events

componentshiftercomplete

Register a handler to be called when componentShifter() requests complete.

window.addEventListener("componentshiftercomplete", function(e) {
    console.log(e);
});

componentshiftererror

Register a handler to be called when componentShifter() requests complete with an error.

window.addEventListener("componentshiftererror", function(e) {
    console.log(e);
});

componentshifterstart

Register a handler to be called when componentShifter() requests begins.

window.addEventListener("componentshifterstart", function(e) {
    console.log(e);
});

componentshiftersuccess

Attach a function to be executed whenever an componentShifter() request completes successfully.

window.addEventListener("componentshiftersuccess", function(e) {
    console.log(e);
});