stimulus-controller 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1289592ab39d575381186ce813c1d93e3a64d50583a20e1736901d18279002d
4
- data.tar.gz: 7264c820dbca16ce2a2d044c111421f76187bef2d4509101ae72eb8fa3b4adf9
3
+ metadata.gz: fba998e8b72b91d84ca482b10b2e8e7bb0fedfa0b875b4a18f1b5e5461c5097b
4
+ data.tar.gz: 72b1e7b36a1d38648b59cf3aa2a00fc740c3c78c627c9d8f33af0a14e6c2e585
5
5
  SHA512:
6
- metadata.gz: 04234d9c0b1aa96b30b223c6c856103e4d8b15789a0c7f056e76ed82bdb1d26c848a4943687f4d536edbf19246f55cbf819f45224a0b6f6b25f7d95ebe661fca
7
- data.tar.gz: bc7b984d51952d393dbff8af30900f55a50d65b0714bf6478c75c81539b43d8151dea5e2a2cc528e1590d4da421db768bc179cc498ecffd1289b58831f1757ba
6
+ metadata.gz: 06d819531887cbfe6964e9229923a2bc2195c6b1128c9247aad11ae7f8c50469e9dcf36ad97a3d8982347a0cfe8aaa456be39dc5e7f8cd18d9eb3c819916801d
7
+ data.tar.gz: 8e034be8a25b551ddb0bb4bc98e86a4a9b4d2752ab7c3b5bd729659220f84a3e637cdd2be894180d899f941a6bf197bab7047e0e8880151ce5901b0c89e8e0d8
data/README.md CHANGED
@@ -18,7 +18,7 @@ to your gemfile and run `bundle`
18
18
  ### Usage example with .haml
19
19
 
20
20
  ```haml
21
- = stimulus_controller("my-controller", { items: ["Item-1"] }) do |sc|
21
+ = stimulus_controller("my-controller", { items: ["Item-1"] }, class: 'my-css-class') do |sc|
22
22
  = content_tag :div, data: sc.click('myAction') do
23
23
  = "my-Action-Button"
24
24
  ```
@@ -40,7 +40,9 @@ export default class extends Controller {
40
40
  items: Array
41
41
  }
42
42
 
43
- // And now you can use this.itemsValue on your code
43
+ myAction() {
44
+ alert(`Items are: «${JSON.stringify(this.itemsValue)}»`)
45
+ }
44
46
  }
45
47
  ```
46
48
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stimulus-controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Sedlmair