ToDesktop Docs
β Back to ToDesktop.com
Searchβ¦
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.
1
window
.
todesktop
.
on
(
'show'
,
()
=>
{
2
console
.
log
(
'menubar window is now visible'
)
3
});
Copied!
todesktop.on('hide')
Triggered when a menubar window is hidden.
1
window
.
todesktop
.
on
(
'hide'
,
()
=>
{
2
console
.
log
(
'menubar window is now hidden'
)
3
});
Copied!
Javascript API - Previous
App Icon Badging, Bouncing and Progress Bar
Next - Javascript API
Global Shortcuts
Last modified
2yr ago
Copy link
Contents
todesktop.on('show')
todesktop.on('hide')