recordselect 3.10.9 → 4.0.0
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.
- checksums.yaml +4 -4
- data/README +37 -1
- data/app/assets/javascripts/record_select.js +656 -0
- data/lib/record_select/config.rb +0 -12
- data/lib/record_select/engine.rb +1 -1
- data/lib/record_select/helpers/record_select_helper.rb +40 -25
- data/lib/record_select/version.rb +3 -3
- metadata +3 -5
- data/app/assets/javascripts/jquery/record_select.js +0 -632
- data/app/assets/javascripts/prototype/record_select.js +0 -429
- data/app/assets/javascripts/record_select.js.erb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0ef7c94da94faaf00ae9051a1df4df8f2eaffb81b688227077980a08b3779e9
|
4
|
+
data.tar.gz: f41bab439890701d105855510b961364e13cb6b6e1682273aaa8db84c73d408a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8cd9703b6f7a2d4e7eb36299a65d002ee87b273afeda9490c673a049d0e041ac63f73bdbfbc8235556ad33e380ae6b6be5f7769e19ec7cb798c42c7d7636b3b
|
7
|
+
data.tar.gz: 4f444e548ac1d7052c9e0f1e320bb92f3c207aba91ec92e76399faa3211dc156a449a9883b963c3c4745a191891c1e5b629b4fe9b02455d81e99e8bbdf99e3da
|
data/README
CHANGED
@@ -3,10 +3,46 @@ RecordSelect
|
|
3
3
|
|
4
4
|
(c) 2007 - 2016 Sergio Cambra, Lance Ivy
|
5
5
|
|
6
|
-
RecordSelect is a Rails widget to help you pick one record out of many. I designed it as a more usable and performant alternative to generating a massive dropdown list. It relies on AJAX
|
6
|
+
RecordSelect is a Rails widget to help you pick one record out of many. I designed it as a more usable and performant alternative to generating a massive dropdown list. It relies on AJAX, powered by jQuery, so jQuery must be loaded first, either from jquery-rails gem or just loading the JS in the assets pipeline, or imported before importing record_select if using importmap.
|
7
7
|
|
8
8
|
Please see the ActionView::Helpers::RecordSelectHelpers for the most common API. More documentation (and HOWTOs) can be found online at the wiki.
|
9
9
|
|
10
|
+
= USAGE WITH ASSETS PIPELINE
|
11
|
+
|
12
|
+
Add to application.js
|
13
|
+
|
14
|
+
```js
|
15
|
+
//= require jquery
|
16
|
+
//= require record_select
|
17
|
+
```
|
18
|
+
|
19
|
+
= USAGE WITH IMPORTMAP
|
20
|
+
|
21
|
+
Add to importmap.rb
|
22
|
+
|
23
|
+
```rb
|
24
|
+
pin "jquery"
|
25
|
+
pin "record_select"
|
26
|
+
```
|
27
|
+
|
28
|
+
Add to app/assets/config/manifest.js
|
29
|
+
|
30
|
+
```js
|
31
|
+
//= link jquery.js
|
32
|
+
//= link record_select.js
|
33
|
+
```
|
34
|
+
|
35
|
+
Add to app/javascript/application.js
|
36
|
+
|
37
|
+
```js
|
38
|
+
import 'jquery'
|
39
|
+
import 'record_select'
|
40
|
+
```
|
41
|
+
|
42
|
+
= USAGE WITH ACTIVE_SCAFFOLD
|
43
|
+
|
44
|
+
Either using assets pipeline or importmap, it will be loaded when requiring or importing active_scaffold, so no need to add it to application.js, importmap.rb or manifest.js
|
45
|
+
|
10
46
|
= DEPENDENCIES
|
11
47
|
This depends on the excellent Paginator gem by Bruce Williams. This simple gem is available at paginator.rubyforge.org.
|
12
48
|
|