0.8.1 • Published 8 years ago

ractive-select v0.8.1

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

ractive-select

A replacement for <select> tags that allows full styling and customizability.

Demo

Live Demo

Install

npm install ractive-select --save

Features

  • Themable
  • Supports native mobile UI
  • Keyboard support (arrow keys, space/enter, jump to item by typing)

Usage

Add the select to your Ractive instance:

Ractive.extend({
    ...
    components: {
        select: require('ractive-select')
    },
    ...
});

Use it like a normal select element

<select value='{{ myValue }}'>
 {{#each options}}
 <option>{{this}}</option>
 {{/each}}
 <option>some other option</option>
</select>

Or if you already have an array:

<select items='{{options}}'></select>
...
data: {
    // can either be array of primitives
    items: ["foo", "bar", "baz"],

    // or array of objects with `value` and `label` -> <option value='{{value}}'>{{label}}</option>
    items: [{label: "foo", value: "_FOO", ...}],
},
...
0.8.1

8 years ago

0.8.0

9 years ago

0.7.3

9 years ago

0.7.2

9 years ago

0.7.0

9 years ago

0.6.12

9 years ago

0.6.11

9 years ago

0.6.10

9 years ago

0.6.9

9 years ago

0.6.8

9 years ago

0.6.7

9 years ago

0.6.6

9 years ago

0.6.5

9 years ago

0.6.4

9 years ago

0.6.3

9 years ago

0.6.1

9 years ago

0.6.0

9 years ago

0.5.0

9 years ago

0.4.7

9 years ago

0.4.6

9 years ago

0.4.5

9 years ago

0.4.4

9 years ago

0.4.3

9 years ago

0.4.2

9 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago