2.1.0 • Published 4 years ago

wired-combo v2.1.0

Weekly downloads
62
License
MIT
Repository
github
Last release
4 years ago

wired combo

wired-combo

Combobox control - similar to a native browser select element; with a hand-drawn, wireframe like, style.

For demo and view the complete set of wired-elememts: wiredjs.com

Usage

Add wired-combo to your project:

npm i wired-combo

Import wired-combo definition into your HTML page:

<script type="module" src="wired-combo/lib/wired-combo.js"></script>

Or into your module script:

import { WiredCombo } from "wired-combo"

Use it in your web page:

<wired-combo id="combo" selected="two">
  <wired-item value="one">Number One</wired-item>
  <wired-item value="two">Number Two</wired-item>
  <wired-item value="three">Number Three</wired-item>
</wired-combo>

Properties

disabled - disables the combo selector. Default value is false.

selected - Value of the selected wired-item.

Custom CSS Variables

--wired-combo-popup-bg Background color of the dropdown when combo selector is open.

--wired-item-selected-bg Background color of the selected item

Events

selected event fired when an item is selected by the user.

License

MIT License (c) Preet Shihn

2.1.0

4 years ago

2.0.2

4 years ago

2.0.0

5 years ago

2.0.0-alpha.4

5 years ago

2.0.0-alpha.1

5 years ago

2.0.0-alpha.0

5 years ago

1.0.0

5 years ago

1.0.0-alpha.0

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago

0.9.0-1

5 years ago

0.9.0-0

5 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.8.0-0

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.5

6 years ago

0.6.0

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago