volt-simple_list_item_selector 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80ad55b0345bd7299003e0939077261f0fd82209
4
- data.tar.gz: a66669df34afb34c98459b3d7b9fb91d17998132
3
+ metadata.gz: 14064e2931c39382a95059c3e1069e02aac27382
4
+ data.tar.gz: 761f36a2c4896b944382d85ca9d22ce59966e8b0
5
5
  SHA512:
6
- metadata.gz: 7546f0ec7369679c0765673a3271bad3a4a5f57e9a7000651c5231eb2a7908f1ff38a7cfb1c808bb33c5e5eda046469e85019c340a289c3321f1985d8c7f2240
7
- data.tar.gz: 31c2e70eb59c564d6b8ec6aeaec5ad00dbbb2475c1962228940a7a654a26e40a8badeabdbfa3aa2645687e8fcbcf65ab10d545a9df896c8129bb61f47bcfada7
6
+ metadata.gz: 545a3b7739375ceee206bf3f5cc25cfd76eb04feb99781e639f9f90b6dec3c5f2e3dff04fd60bed411c123e90fa235a80b4e57a3f23d652699e1616e284e85f1
7
+ data.tar.gz: 949dbf0b6ced3d8ed5c13a31c591681c5c3213b247fa3bf8ef45be748b98a343a4b26032259d1ca251639e05ead86619729224cbe9d18c5abcb44d84d8949418
@@ -10,5 +10,13 @@ module SimpleListItemSelector
10
10
  attrs.selected_class || 'selected'
11
11
  end
12
12
  end
13
+
14
+ def option_class(option)
15
+ if attrs.use_option_as_class
16
+ option
17
+ else
18
+ ''
19
+ end
20
+ end
13
21
  end
14
22
  end
@@ -1,6 +1,6 @@
1
1
  <ul class="list-item-selector {{attrs.ul_class}}">
2
2
  {{ attrs.options.each do |option| }}
3
- <li e-click="select(option)" class="option {{attrs.li_class}} {{selected_class(option)}}">
3
+ <li e-click="select(option)" class="option {{ option_class(option) }} {{attrs.li_class}} {{selected_class(option)}}">
4
4
  <a href="#">{{ option }}</a>
5
5
  </li>
6
6
  {{ end }}
@@ -1,5 +1,5 @@
1
1
  module Volt
2
2
  module SimpleListItemSelector
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt-simple_list_item_selector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neurodynamic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-28 00:00:00.000000000 Z
11
+ date: 2015-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: volt