0.1.3 • Published 4 years ago
electron-tray-tips v0.1.3
Electron-tray-tips
Used to display preview window when Electron.Tray cursor is focused on tray
effect
Install
npm install electron-tray-tips
Usage
...
const { Tray } = require('electron');
const ElectronTrayTips = require('electron-tray-tips');
const ElectronTrayTipsClass = new ElectronTrayTips(this.tray);
let tray = new Tray('tray26.ico');
let isBalloonShow = false;
tray.setToolTip('ar414');
this.tray.addListener('mouse-move',((event, position) => {
if(!this.isBalloonShow){
ElectronTrayTipsClass.showTrayTips(`file://...tips.html')}`,
() => {
isBalloonShow = false;
});
}
}));