Windows

Neutralino's Window API: https://neutralino.js.org/docs/api/window

Windows.current

import { Windows } from '@empathize/framework';

// Hide current window
Windows.current.hide();

// Show current window after 3 seconds
setTimeout(() => {
    Windows.current.show();
}, 3000);

Windows.open(name, options)

import { Windows } from '@empathize/framework';

// Create new window and load '/about.html' file there
Windows.open('about');

// Create new window with some params
// and load '/about.html' file there
Windows.open('about', {
    enableInspector: true,
    width: 400,
    height: 300
});

Last updated