ProMotion-XLForm 0.0.12 → 0.0.13
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2fae928fe6875a1e6ef361a02b1121c64e9f33d
|
4
|
+
data.tar.gz: d3cc93c130c85a81dd57e3c70b1d878f5818eef9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8492da93c9cb5131e4252435ff7fc5a8ad3a6a0a45586ea2ff5b2fa276226fb3baac21b7bf2ee95f5b4d86f220a014e922ad786c8e2e4917f6cb5a8d7e49d45a
|
7
|
+
data.tar.gz: 3bd4a0fcc1535b1648d6c6535e530e73ca49cb9634e022f52e3c5ad0a0f0d502c8edc2920972367d76f848fd7a2879226eed07562c33ff0a56c88a87f1684c3f
|
data/README.md
CHANGED
@@ -428,6 +428,14 @@ For the text based cells (like `:text`, `:password`, `:number`, `:integer`, `:de
|
|
428
428
|
- :web_search
|
429
429
|
- :alphabet
|
430
430
|
|
431
|
+
### RMQ / RedPotion
|
432
|
+
If you use [RMQ](https://github.com/infinitered/rmq) or [RedPotion](https://github.com/infinitered/redpotion), you can style the screen with
|
433
|
+
```ruby
|
434
|
+
def form_view(st)
|
435
|
+
|
436
|
+
end
|
437
|
+
```
|
438
|
+
|
431
439
|
## Contributing
|
432
440
|
|
433
441
|
1. Fork it
|
@@ -43,6 +43,13 @@ module ProMotion
|
|
43
43
|
}
|
44
44
|
end
|
45
45
|
|
46
|
+
# support for RMQ stylesheet using `form_view`
|
47
|
+
# this is not optimal since set_stylesheet is called from
|
48
|
+
# viewDidLoad on RMQ but the tableView is initialized only after that
|
49
|
+
if self.class.respond_to?(:rmq_style_sheet_class) && self.class.rmq_style_sheet_class
|
50
|
+
self.tableView.rmq.apply_style(:form_view) if self.rmq.stylesheet.respond_to?(:form_view)
|
51
|
+
end
|
52
|
+
|
46
53
|
self.form_added if self.respond_to?(:form_added)
|
47
54
|
end
|
48
55
|
|
@@ -21,6 +21,10 @@ module ProMotion
|
|
21
21
|
|
22
22
|
section.footerTitle = section_data[:footer] if section_data[:footer]
|
23
23
|
|
24
|
+
if section.multivaluedAddButton
|
25
|
+
section.multivaluedAddButton.title = section_data[:multi_add_title] if section_data[:multi_add_title]
|
26
|
+
end
|
27
|
+
|
24
28
|
add_proc tag, :on_add, section_data[:on_add] if section_data[:on_add]
|
25
29
|
add_proc tag, :on_remove, section_data[:on_remove] if section_data[:on_remove]
|
26
30
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ProMotion-XLForm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Michotte
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ProMotion
|