# dropup2

> A reusable Vue.js component for a dropup select menu. The component takes a prop: options: the options to pass into your dropup, each option must contain a name field. An option may contain also a description field, where you can add a description to yo

Latest version **0.1.5** (published 2020-10-20) · 0 weekly downloads

## Install

```sh
npm install dropup2
pnpm add dropup2
yarn add dropup2
bun add dropup2
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2020-10-20 |
| First published | 2020-10-20 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 15.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | nachmanrosen |

## Links

- npm: https://www.npmjs.com/package/dropup2
- npm.io page: https://npm.io/package/dropup2

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.6.11
- [core-js](https://npm.io/package/core-js.md) ^3.6.5

## Recent versions

- 0.1.5 (latest) — 2020-10-20
- 0.1.4 — 2020-10-20
- 0.1.3 — 2020-10-20
- 0.1.2 — 2020-10-20
- 0.1.1 — 2020-10-20
- 0.1.0 — 2020-10-20

## README

A reusable Vue.js component for a dropup select menu. 
The component takes a prop: options: the options to pass into your dropup, each option must contain a name field.
An option may contain also a description field, where you can add a  description to your options.
The dropup emits the selected  data back up to its parent-DropUpContainer.vue


    <div>
        <drop-up
                :options="myOptions"
                @select="select"
                @clear= "clear"
        ></drop-up>
    </div>
   
    <script>
        import DropUp from "./DropUp";
        export default {
            name: "DropUpContainer",
            data(){
                return{
                    myOptions:[{name:'apples', description :'$2.00'}],
                    selected: null
                }
            },
          methods: {
            select(user) {
              this.selected = user;
            },
            clear() {
              this.selected = {};
            },
          },
            components: {DropUp}
        }
    </script>

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