# jinkela-cascader

> A Cascader on Jinkela

Latest version **1.1.0** (published 2018-08-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install jinkela-cascader
pnpm add jinkela-cascader
yarn add jinkela-cascader
bun add jinkela-cascader
```

## 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.1.0 |
| Published | 2018-08-19 |
| First published | 2017-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 51 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | YanagiEiichi |
| Maintainers | yanagieiichi |

## Links

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

## Recent versions

- 1.1.0 (latest) — 2018-08-19
- 1.0.0 — 2017-07-17

## README

# Jinkela-Cascader

## Install

```bash
yarn install jinkela-cascader
```

## Usage

### new Cascader([args])

* `args` **Object** Set of configurable options to set. Can have the following fields:
  * `defaultValue` **Any** The default value.
  * `placeholder` **String** The placeholder text.
  * `options` **Array&lt;option&gt;** Cascading options.

* `option` **Object** The cascading option item. Can have the following fields:
  * `value` **Any** The item value. Defaults to `text`. 
  * `text` **String** The item text. Defaults to `value`. 
  * `options` **Array&lt;option&gt;** sub-options.

## Demo

```html
<script src="https://unpkg.com/jinkela@1.2.19/umd.js"></script>
<script src="https://unpkg.com/jinkela-cascader@1.0.0/index.js"></script>
<script>
addEventListener('DOMContentLoaded', () => {

  new Cascader({
    options: [
      {
        text: 'item 1', options: [
          { text: 'item 1.1' },
          { text: 'item 1.2' }
        ] 
      },
      { text: 'item 2' }
    ] 
  }).to(document.body);

});
</script>
```

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