🚀
Empathize
  • Introduction
  • Installation
  • API
    • Paths API
      • Directories
      • Paths
    • Filesystem API
      • Filesystem
    • Windows API
      • Windows
    • OS API
      • Process
      • Tray
      • IPC
      • Notification
      • Archive
      • Package
    • Network API
      • fetch
      • Domain
      • Downloader
    • Async API
      • promisify
    • Meta classes
      • Cache
      • Configs
      • Debug
  • Building application
Powered by GitBook
On this page
  • Windows.current
  • Windows.open(name, options)
  1. API
  2. Windows API

Windows

PreviousWindows APINextOS API

Last updated 3 years ago

Neutralino's Window API:

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
});
https://neutralino.js.org/docs/api/window