cable_modal 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/lib/cable_modal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4ff8897388b9a1f57e195c31fff070c0f64a71f6f6e26060213e15ef976b62c
|
4
|
+
data.tar.gz: 97d6fa91c00193102fd97e89b4a495ef33d19651302fd147585b5270b70643dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26095abd26af35e3b2581da3e50bb94d05ea9c312a0808bd72cf145ce797b2438de1edbe288962c1073e96a7b86de64d93351d27fbef63e48cb537bb48c8a032
|
7
|
+
data.tar.gz: 01b7004bdd357bd0caf7dd1788d778f1fa32088de2696e45002ba3893bd12703b39c0517619a158bc6bfadff5c66a7d616532890f2c3fc7b6830bb93f6332d26
|
data/README.md
CHANGED
@@ -44,14 +44,14 @@ A great way to to use these to control the custom modal is with [mrujs](https://
|
|
44
44
|
|
45
45
|
First you'll want to set up mrujs with the CableCar plugin. Follow the [instructions in the mrujs docs](https://mrujs.com/how-tos/integrate-cablecar).
|
46
46
|
|
47
|
-
Now you can add `data-
|
47
|
+
Now you can add `data-remote` to any links or forms you want to use to control the modal.
|
48
48
|
|
49
49
|
```html
|
50
|
-
<a href="/confirmations/new" data-
|
50
|
+
<a href="/confirmations/new" data-remote>Open Confirmation in Modal</a>
|
51
51
|
|
52
52
|
<!-- OR -->
|
53
53
|
|
54
|
-
<form action="/confirmations" data-
|
54
|
+
<form action="/confirmations" data-remote>
|
55
55
|
<button>Submit form and process result in modal</button>
|
56
56
|
</form>
|
57
57
|
```
|
@@ -88,6 +88,8 @@ Then in your controllers, process the request and use `render operations:` to se
|
|
88
88
|
end
|
89
89
|
```
|
90
90
|
|
91
|
+
There's a full reference implementation in [/test/dummy](/test/dummy) of this repo.
|
92
|
+
|
91
93
|
## Customization
|
92
94
|
|
93
95
|
If you don't want to use Bootstrap's modals, you can write your own plugin and then pass it to `CableModal.use(plugin)` in your javascript initializion.
|
data/lib/cable_modal/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cable_modal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafe Rosen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|