Milestone v1.6.0 was closed with 5 issues.
What's new
Highlights
- Native notifications
- Support asset paths with spaces and other special characters.
- Made
window.iconfile
property as an optional property. - Maximize option for the main window on Linux.
Native notifications
Each operating system has an option to display notifications. Neutralino.os.showNotification(properties, s, e)
will show a notification on the current operating system.
parameters
properties
accepts a JSON object with the options for displaying a notification.
{
"summary": "Title of the message",
"body": "Content of the message"
}
s
and e
are usual callbacks for a generic Neutralinojs API function.
Maximize option for the window mode
window.maximize: <boolean>
in settings.json
If this option has true
, the main window will be maximized at the startup of the application. Otherwise, it will use the given height and width. The default value is false
.
Example:
{
"appname": "myapp",
"appport": "5006",
"mode": "window",
"url": "/",
"window": {
"title": "My app",
"width": "1000",
"height": "700",
"maximize": true
}
}
Please notice that the macOS version of Neutralino is not having the most features. We will try to bring it to the same level soon.