0.0.15 • Published 7 years ago

mn-select v0.0.15

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

npm version Dependency Status MIT Licence

mn-select

Minimalist select component, agnostic to framworks.

See the demo

preview demo

Install

npm install --save mn-select

And bundle dependencies and main files in dist/ with your preferred tool.

Usage

just use the tag mn-select and option, e.g.

<mn-select>
  <option value="#fff">White</option>
  <option value="#000">Black</option>
</mn-select>

To begin with an value, you can use the attribute selected in tag option

<mn-select>
  <option value="#fff">White</option>
  <option value="#000" selected>Black</option>
</mn-select>

Or just use the attribute value in mn-select

<mn-select value="#fff">
  <option value="#fff">White</option>
  <option value="#000">Black</option>
</mn-select>

If you want set the value from javascript, just assign a value to property .value, e.g.

document.querySelector('mn-select').value = '#000'

The following attributes from image are supported in this mn-select

and in option

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago