ProMotion-XLForm 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ccbbd4523b880c96a97d116954a4a2f489d25ee
4
- data.tar.gz: a3205db9af2f36746e5b8fc9c586f78c9448abcf
3
+ metadata.gz: d2fae928fe6875a1e6ef361a02b1121c64e9f33d
4
+ data.tar.gz: d3cc93c130c85a81dd57e3c70b1d878f5818eef9
5
5
  SHA512:
6
- metadata.gz: 92da0d7781a60fa052347d026a3b1e0fc885a0f391d7264131543b62d1f75f5c9049a1c78f2202b060bbaab0a7f8683de7a17cc575f2971da6144b3ed11ddaf2
7
- data.tar.gz: 28b2e846427d54be79d82e209121a00c5190996cb38daf589431241217c3a56991ba7729dddb7117256c9d5ced9e0736697f2889e7eb9e2f3d14390e6f725234
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
@@ -69,6 +69,8 @@ class XLFormRowDescriptor
69
69
  self.cell.keyboard_type = keyboard_type(cell_data[:keyboard_type])
70
70
  end
71
71
 
72
+ self.cell.rowDescriptor = self
73
+
72
74
  self.configureCellAtCreationTime
73
75
  end
74
76
 
@@ -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.12
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-01-17 00:00:00.000000000 Z
11
+ date: 2016-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ProMotion