Reputation: 8284
I am using the below method to initiate a kwindow instance:
function initWindow() {
const kwindow = self.$window.getKendoWindow(); <--- I have tried adding the added action in the getKendoWindow(i.e. here)
kwindow.bind('close', (event) => {
setTimeout(close.bind(self, event));
});
kwindow.one('open', startProgress);
return kwindow;
}
How could I add the minimize icon / action
within this format?
i.e. recent attempt below: Yes, I know the documentation shows one way of adding the actions to kwindows setup a certain way, but where I'm integrating these they aren't setup like that.
const kwindow = self.$window.getKendoWindow({
actions: ["Minimize"], <-- no errors but does nothing
});
Upvotes: 0
Views: 654
Reputation: 1329
Try using setOptions
Allows the Window to be configured with new options.
const kwindow = self.$window.getKendoWindow();
kwindow.setOptions({
actions: ["Minimize", "Maximize"]
});
Upvotes: 1