slide-selector 0.1.4 → 0.1.5
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.md +13 -10
- data/lib/slide/selector/core/version.rb +1 -1
- data/slide-selector.gemspec +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11f7e6a7de293ed3cc5b3fcc17c656258b25b72bcfe7a753ecfbef44a9abac0b
|
4
|
+
data.tar.gz: 7e1508fac543d154cb0bf9008b0eea5f9116d553bd5a94a83e9f2d146c724e03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '093a0fda3c3ce077906ff18559132424d104c3fd79bd936b372ebf19388dab2f4915c24a307ec247cec159529101c00eaf36561dd6b2d0478814262fe756819e'
|
7
|
+
data.tar.gz: 512fa1d12133c524c6577f638803c79d37abed45bf16e2eeccbc9ce3b4a04c1660380cd5d469e032bb9da506632841e80d9f9bbf4e519f7a41bf7250846eb67d
|
data/README.md
CHANGED
@@ -24,20 +24,23 @@ Or install it yourself as:
|
|
24
24
|
|
25
25
|
## Usage
|
26
26
|
|
27
|
-
Rename applitcation.css to applitcation.scss and add `@import "slide-selector.css";`
|
28
|
-
In applitcation.js add `//= require slide-selector` after `//= require_tree .`
|
27
|
+
* Rename applitcation.css to applitcation.scss and add `@import "slide-selector.css";`
|
28
|
+
* In applitcation.js add `//= require slide-selector` after `//= require_tree .`
|
29
|
+
|
30
|
+
#### Syntax:
|
29
31
|
|
30
|
-
Syntax:
|
31
32
|
```
|
32
33
|
<%= slide_selector_tag [:min_field, :max_field], [:min_range, :max_range], options_for_select, options = {} %>
|
33
34
|
```
|
34
|
-
Options:
|
35
|
-
`:slider_step` - To specify the size of each moment.
|
36
|
-
`:type` - For dollar type use `'amount'`.
|
37
|
-
`:selector` - To disable drop-down options (`options_for_select` can be nil for this).
|
38
|
-
`:class` - Set class to div
|
39
35
|
|
40
|
-
|
36
|
+
#### Options:
|
37
|
+
|
38
|
+
* `:slider_step` - To specify the size of each moment.
|
39
|
+
* `:type` - For dollar type use `'amount'`.
|
40
|
+
* `:selector` - To disable drop-down options (`options_for_select` can be nil for this).
|
41
|
+
* `:class` - Set class to div
|
42
|
+
|
43
|
+
#### Examples:
|
41
44
|
With form:
|
42
45
|
```
|
43
46
|
<%= form_for root_path do |f| %>
|
@@ -51,7 +54,7 @@ Without form:
|
|
51
54
|
<%= slide_selector_tag [:min_rank3, :max_rank3], [0, 10000], simple_drop_down_options %>
|
52
55
|
```
|
53
56
|
|
54
|
-
In application_helper.rb
|
57
|
+
In `application_helper.rb`
|
55
58
|
```
|
56
59
|
module ApplicationHelper
|
57
60
|
def amount_drop_down_options
|
data/slide-selector.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.email = ["tqr093@gmail.com"]
|
10
10
|
|
11
11
|
spec.summary = %q{custom input tag with range-slider & text-field type selectors}
|
12
|
-
spec.description = %q{https://github.com/Touqeer-tqr/custom-form
|
12
|
+
spec.description = %q{Custom form field_tag of range-slider with text_field type selector. You can either choose from drop down or enter your own value and the slider will auto-adjust or you can use the slider to adjust values. This all through on form field f.slide_selector. Check out https://github.com/Touqeer-tqr/custom-form for sample app}
|
13
13
|
spec.homepage = "https://github.com/Touqeer-tqr/slide-selector"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slide-selector
|
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
|
- Touqeer-tqr
|
@@ -38,7 +38,11 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
-
description:
|
41
|
+
description: Custom form field_tag of range-slider with text_field type selector.
|
42
|
+
You can either choose from drop down or enter your own value and the slider will
|
43
|
+
auto-adjust or you can use the slider to adjust values. This all through on form
|
44
|
+
field f.slide_selector. Check out https://github.com/Touqeer-tqr/custom-form for
|
45
|
+
sample app
|
42
46
|
email:
|
43
47
|
- tqr093@gmail.com
|
44
48
|
executables: []
|