ToDesktop Docs
← Back to ToDesktop.com
Search
⌃
K
Links
Welcome
App Options
🚀
Launch at Startup (macOS, Windows only)
🔗
Defining Internal URLs
⛓
App Protocols and Deeplinks
Customizing your app
💄
Add Custom CSS to your Desktop App
👩💻
Add Custom Javascript to your Desktop App
🖱
Make a Transparent Titlebar Draggable (macOS only)
Javascript API
Introduction
ℹ
Info
🔗
Navigation
🖨
Printing
🏷
App Icon Badging, Bouncing and Progress Bar
👂
Menubar Window Events
⌨
Global Shortcuts
🧰
Tray
👉
Push Notifications with Firebase Cloud Messaging
👀
Find In Page
🗺
Window
🎛
Application Menu
🎚
Context menu
Recipes
🌟
Send Native Notifications
🖥
Separate Desktop Logic from Web App Logic
👀
Add Find In Page to your Desktop App
↔
Add Browser Controls to your Desktop App
💾
Storing Data
☁
Download Links for your Website
💗
Enlarging Menubar Window
🖲
Menubar Icon
🔴
Capture Screen Contents
👪
Building a Slack-like sidebar
🔒
Google OAuth Screen
Powered By
GitBook
👂
Menubar Window Events
We include some event listeners that are specific to menubar. Allowing you to perform an action when a menubar is hidden or shown.
todesktop.on('show')
Triggered when a menubar window is shown.
window
.
todesktop
.
on
(
'show'
,
()
=>
{
console
.
log
(
'menubar window is now visible'
)
});
todesktop.on('hide')
Triggered when a menubar window is hidden.
window
.
todesktop
.
on
(
'hide'
,
()
=>
{
console
.
log
(
'menubar window is now hidden'
)
});
Javascript API - Previous
App Icon Badging, Bouncing and Progress Bar
Next - Javascript API
Global Shortcuts
Last modified
3yr ago