0.1.3 • Published 4 years ago

electron-tray-tips v0.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Electron-tray-tips

npm.io npm.io npm.io npm.io npm.io

Used to display preview window when Electron.Tray cursor is focused on tray

effect

electron-tray-tips-bottom

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;
         });
     }
     
}));