recordselect 3.10.9 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README +37 -1
- data/app/assets/javascripts/record_select.js +657 -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: 65ad43872bf90ddfbc045b05d0504aba6146e244e381742c10c7d105959fd222
|
4
|
+
data.tar.gz: 1d10b16c74f2a695cf4c8f8cb07419440b19ccb47ba122c92eb29dea941fbda7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 074faf7c0a581eeea7a2ccbc85b7caf185a3e900f13f60ab4ab2334e802b6ccb766d8083eb4a367989f92b453459dc78925d98bb6ce0c63e1ca48f57c914ac9a
|
7
|
+
data.tar.gz: ea4f0c7baf85455cd755ec83ec22abbf8855301335de39530b5ad310ca5bd2a710b325a863e91936ab06a9adedcdcae1df1c41cfc3f7ba908ce4c30d4f656a75
|
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
|
|