#101222
edwardsmarkf
Member

this works, sort of:

window.onload = () => {
const smartWindow = document.querySelector('smart-window');
smartWindow.headerButtons = ['collapse', 'minimize', 'pin'];
smartWindow.addEventListener('minimize', (event) => {
setTimeout( () => {
document.querySelector('smart-window').style.left = '300px' ;
}, 100);
});
};