# selection-popup

> A library to add popup menus at text selections.

Latest version **1.0.4** (published 2017-11-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install selection-popup
pnpm add selection-popup
yarn add selection-popup
bun add selection-popup
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2017-11-27 |
| First published | 2017-11-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.2.4 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Erdem Bircan |
| Maintainers | erdembircan |
| Keywords | selection, popup, medium |

## Links

- npm: https://www.npmjs.com/package/selection-popup
- Repository: https://github.com/erdembircan/selection-popup
- Homepage: https://github.com/erdembircan/selection-popup#readme
- Issues: https://github.com/erdembircan/selection-popup/issues
- npm.io page: https://npm.io/package/selection-popup

## Alternatives

- [react-native-root-siblings](https://npm.io/package/react-native-root-siblings.md) — 102.9K weekly downloads
- [post-robot](https://npm.io/package/post-robot.md) — 93.7K weekly downloads
- [@praxisui/dialog](https://npm.io/package/@praxisui/dialog.md) — 2.0K weekly downloads
- [easy-toggle-state](https://npm.io/package/easy-toggle-state.md) — 350 weekly downloads
- [ngx-lightbox-evp](https://npm.io/package/ngx-lightbox-evp.md) — 19 weekly downloads

## Recent versions

- 1.0.4 (latest) — 2017-11-27
- 1.0.3 — 2017-11-27
- 1.0.2 — 2017-11-21
- 1.0.1 — 2017-11-21

## README

# selection-popup [![Build Status](https://travis-ci.org/erdembircan/selection-popup.svg?branch=master)](https://travis-ci.org/erdembircan/selection-popup)

---

A library to add popup menus at text selections.
<br>
[Demo page](https://erdembircan.github.io/selection-popup/)

---

## Installation
`npm install selection-popup`

---

## Usage
```
const selectionPop = require('selection-popup)

selectionPop(['share', '<i class="fa fa-twitter" aria-hidden="true"></i>
', 'log'], [shareFunc, tweetFunc, function(e){
  console.log('selected item: ' + e)
} ],{style: 'background-color:yellow'});
```

---

## API
### selectionPop([items],[funcs] ,[options])
add a popup menu to document

### items (required)
Type: `array`, `String`(for single item)

---
### funcs (required)
Type: `array`, `String`(for single item)
functions for onClick actions of the appropriate items

---

### options (optional)
Type: `object`
<br>
[style]: `String` an override styles for customization

---

## License
Copyright © 2017, Erdem Bircan. Released under the MIT License.

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