prime_sliding_action 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTZiODViZjkwYWE0ZTI3NTRkMGM0YWViYTBjOGEwZGQ2NDRjN2I2MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGQ0NGQ5ODc5MWU2OGJkZDM4ZGJkMzIwMjhkNTU0OWJhMmU2MjY2Yw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWYzNDE0NGI0NmFmYTcxMDExNjM2OGU1M2VhYTQ1ODVjY2ZiZDM5MWFhZGJi
|
10
|
+
YjAzYjk0NmQ4NGQ4Y2U3YmJkZmFhODhkMzRhYzhkNzAxNDRkZjQ5Nzk1YTE5
|
11
|
+
MWU0ZTJjNGE4YWQwYzI0NDg2MzU0NDdmOTgzYmJmZTVhZGNiZWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmUwYTI5ZDJkOTUwNmQwMGEzNzRkODVhYWU1ZGEyZDhjODhjM2NhMGFhMzRi
|
14
|
+
NjIzZDY0Njc3ZjYwNjEwMzliYjE2M2I3MzljNzI4YjA0ZTQ3MDgwMmIzNzM2
|
15
|
+
ZGEyNDQ0Nzc5MzNhMDhjNThjZjMyZGY3MDU2OTNhNGQ5ZmQwYWU=
|
@@ -13,15 +13,15 @@ class SlidingCellView < MPCellWithSection
|
|
13
13
|
@sliding_action_buttons_offset = 0
|
14
14
|
@sliding_action_buttons = {}
|
15
15
|
@section.sliding_action_buttons.each do |action, options|
|
16
|
-
styles = [:"#{@section.name}_action_button", :"#{@section.name}_action_button_#{action}"]
|
16
|
+
styles = [:base_action_button, :"base_action_button_#{action}", :"#{@section.name}_action_button", :"#{@section.name}_action_button_#{action}"]
|
17
17
|
button = @section.screen.add_view MPButton,
|
18
|
-
top: 0,
|
19
|
-
width: 80,
|
20
|
-
left: 320 + @sliding_action_buttons_offset,
|
18
|
+
top: 0,
|
19
|
+
width: 80,
|
20
|
+
left: 320 + @sliding_action_buttons_offset,
|
21
21
|
height: cell_height,
|
22
|
-
title_color: :white,
|
22
|
+
title_color: options[:title_color] || :white,
|
23
23
|
title: options[:title],
|
24
|
-
background_color: options[:color] || :red
|
24
|
+
background_color: options[:background_color] || options[:color] || :red
|
25
25
|
@section.screen.setup button, styles: styles
|
26
26
|
@sliding_action_buttons_offset += button.width
|
27
27
|
button.on :touch do
|
@@ -43,7 +43,7 @@ class SlidingCellView < MPCellWithSection
|
|
43
43
|
@sliding_action_buttons_rendered = nil
|
44
44
|
end
|
45
45
|
end
|
46
|
-
|
46
|
+
|
47
47
|
def initialize_content
|
48
48
|
self.scroll_view = self.subviews.first
|
49
49
|
self.scroll_view.subviews.first.removeFromSuperview
|
@@ -133,4 +133,4 @@ class SlidingCellView < MPCellWithSection
|
|
133
133
|
true
|
134
134
|
end
|
135
135
|
end
|
136
|
-
end
|
136
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prime_sliding_action
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Iskander Haziev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|