Smart UI Components & Libraries – Grid, Scheduler, Gantt, Kanban for Angular, React, Next.js, Vue, Blazor, JavaScript › Forums › General Discussions › Window › reposition initial window › Reply To: reposition initial window
December 11, 2020 at 11:41 pm
#101222
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);
});
};