# electron-tray-tips

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

Latest version **0.1.3** (published 2020-03-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install electron-tray-tips
pnpm add electron-tray-tips
yarn add electron-tray-tips
bun add electron-tray-tips
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2020-03-31 |
| First published | 2020-03-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 57.6 KB |
| Known vulnerabilities | 0 (+55 in 1 direct dependencies) |
| Install scripts | no |
| Author | ar414 |
| Maintainers | ar414 |

## Links

- npm: https://www.npmjs.com/package/electron-tray-tips
- Repository: https://github.com/ar414-com/electron-tray-tips
- Homepage: https://github.com/ar414-com/electron-tray-tips#readme
- Issues: https://github.com/ar414-com/electron-tray-tips/issues
- npm.io page: https://npm.io/package/electron-tray-tips

## Dependencies (1)

- [electron](https://npm.io/package/electron.md) ^8.0.0

## Recent versions

- 0.1.3 (latest) — 2020-03-31
- 0.1.2 — 2020-03-31
- 0.1.1 — 2020-03-31
- 0.1.0 — 2020-03-31

## README

# Electron-tray-tips

![](https://img.shields.io/badge/build-passing-brightgreen)
![](https://img.shields.io/badge/stable-v0.1.1-blue)
[![](https://img.shields.io/badge/downloads-4.57%20KB-orange)](https://packagist.org/packages/ar414/redis-lock)
![](https://img.shields.io/badge/coverage-47%25-green)
![](https://img.shields.io/badge/license-MIT-brightgreen)


Used to display preview window when Electron.Tray cursor is focused on tray

## effect
![electron-tray-tips-bottom](https://cdn.ar414.com/electron-tray-tips-bottom.gif)


## Install
```
npm install electron-tray-tips
```

## Usage
```javascript
...
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;
         });
     }
     
}));

---
_Source: https://npm.io/package/electron-tray-tips · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
