During the Done event for the Kendo UI Wizard, the button argument returns as undefined due to the span element being targeted rather than the button.
The button argument should return the clicked button which raised the event.
Setting primary to false on the button of the Wizard has no effect.
There are two primary buttons, although the "Next" button is configured primary:false.
Primary:false should be taken into account and there should be only one primary button in the Wizard.
Enhancement
Expose setOptions() for Kendo Wizard
Desired Behavior
setOptions shall update Wizard steps
wizard.setOptions({
steps: steps
});Destroy current Wizard and reinitialize with new steps
let wizard = $("#wizard").data('kendoWizard');
wizard.destroy();
$("#wizard").empty();
let steps = [];
for (var i = 0; i < 4; i++) {
steps.push({
title: "Tab " + i,
content: "Tab Content " + i
});
}
$("#wizard").kendoWizard({
steps: steps
});