# ember-cli-dropdown-list

> A ember select dropdown plugin.

Latest version **2.0.6** (published 2019-03-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-cli-dropdown-list
pnpm add ember-cli-dropdown-list
yarn add ember-cli-dropdown-list
bun add ember-cli-dropdown-list
```

## 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 | 2.0.6 |
| Published | 2019-03-03 |
| First published | 2016-06-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 11.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Devonte Emokpae |
| Maintainers | devotox |
| Keywords | ember-addon, select, dropdown |

## Links

- npm: https://www.npmjs.com/package/ember-cli-dropdown-list
- npm.io page: https://npm.io/package/ember-cli-dropdown-list

## Dependencies (2)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) 7.5.0
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) 3.0.1

## Recent versions

- 2.0.6 (latest) — 2019-03-03
- 2.0.4 — 2018-08-11
- 2.0.3 — 2018-04-16
- 2.0.2 — 2017-10-06
- 2.0.1 — 2017-10-05
- 1.0.3 — 2017-03-07
- 1.0.2 — 2017-03-03
- 1.0.1 — 2016-06-29
- 1.0.0 — 2016-06-28

## README

[![Ember Observer Score](http://emberobserver.com/badges/ember-cli-dropdown-list.svg)](http://emberobserver.com/addons/ember-cli-dropdown-list)
[![Build Status](https://travis-ci.org/devotox/ember-cli-dropdown-list.svg)](http://travis-ci.org/devotox/ember-cli-dropdown-list)
[![Coverage Status](https://codecov.io/gh/devotox/ember-cli-dropdown-list/branch/master/graph/badge.svg)](https://codecov.io/gh/devotox/ember-cli-dropdown-list)
[![NPM Version](https://badge.fury.io/js/ember-cli-dropdown-list.svg)](http://badge.fury.io/js/ember-cli-dropdown-list)
[![NPM Downloads](https://img.shields.io/npm/dm/ember-cli-dropdown-list.svg)](https://www.npmjs.org/package/ember-cli-dropdown-list)
[![Dependency Status](https://david-dm.org/poetic/ember-cli-dropdown-list.svg)](https://david-dm.org/poetic/ember-cli-dropdown-list)
[![DevDependency Status](https://david-dm.org/poetic/ember-cli-dropdown-list/dev-status.svg)](https://david-dm.org/poetic/ember-cli-dropdown-list#info=devDependencies)
[![Greenkeeper](https://badges.greenkeeper.io/devotox/ember-cli-dropdown-list.svg)](https://greenkeeper.io/)

ember-cli-dropdown-list
==============================================================================

This dropdown supports single selections as well as multiple sections. See example usage below.

[DEMO](http://devotox.github.io/ember-cli-dropdown-list)

Installation
------------------------------------------------------------------------------

```
ember install ember-cli-dropdown-list
```

Compatibility
------------------------------------------------------------------------------

* Ember.js v2.18 or above
* Ember CLI v2.13 or above

Usage
------------------------------------------------------------------------------

```javascript
	single item selection example

	{{dropdown-list
		content=myDataList
		value=myAwesomeValue
		class="chosen-select"
		action="myChangeAction"
		prompt="Choose your poison"
		optionValuePath="content.value"
		optionLabelPath="content.label"
	}}

	multiple item selection example

	{{dropdown-list
		content=myDataList
		value=myAwesomeValues
		class="chosen-select"
		action="myChangeAction"
		prompt="Choose your poisons"
		optionValuePath="content.value"
		optionLabelPath="content.label"
	}}

	content: Array<object>
	optionValuePath: string denoting the path to an item in the content array to use when updating the value property (see below for information on value)
	optionLabelPath: string denoting the path to an item in the content array to use as a nice string to render in the list item
	value: object that should be updated with the selected value in the dropdown list. The actual value set is dependent on the optionValuePath
	multiple: boolean value denoting whether multiple items in the list can be selected. Default is false.
	class: string that should be used as class name for the select element
	prompt: optional string to display on the top of the dropdown list when nothing is selected
	action: name of function to invoke when the selected option changes
```

Contributing
------------------------------------------------------------------------------

See the [Contributing](CONTRIBUTING.md) guide for details.

License
------------------------------------------------------------------------------

This project is licensed under the [MIT License](LICENSE.md).

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