shul 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/shul.rb +23 -6
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 391cde30f463d656662ced80ed2c2f669e245d7f
|
4
|
+
data.tar.gz: ac1ac3d3920359278a5a27c9de1ab52a07e03de1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cefd813589de386c5d1f7fed7258dd320b91d3e0abb74dd4495384b29a89a8c37f7343faa15ea4aaccd6967c9a3268a037b493fd66c053e2f54213a1526e04d
|
7
|
+
data.tar.gz: a8683ec29c9fd5e7703a2ddfcf3916d152e6c64716bda9b74af1da87007fd2da934975c9da71431b63d9c5adcceba467b67232a14a3f740f8ff0eb83eceda683
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/shul.rb
CHANGED
@@ -42,7 +42,7 @@ Shul::Main.new Shoes, doc
|
|
42
42
|
# modifications
|
43
43
|
#
|
44
44
|
# 09-Aug-2017: feature: onkeypress() now implemented.
|
45
|
-
# Listboxes can now be rendered
|
45
|
+
# Listboxes can now be rendered. Radiogroup events now functional
|
46
46
|
# 09-jun-2017: bug fix: The button class has now been implemented with Shule
|
47
47
|
# 22-May-2017: feature: The font size for a label can now be set
|
48
48
|
# 21-May-2017: Added a Document Object Model (DOM) class called Shule
|
@@ -69,7 +69,6 @@ require 'domle'
|
|
69
69
|
|
70
70
|
|
71
71
|
|
72
|
-
|
73
72
|
module RexleObject
|
74
73
|
refine Rexle::Element do
|
75
74
|
|
@@ -87,6 +86,8 @@ vbox {background-color: #0e0}
|
|
87
86
|
label {background-color: #aa1}
|
88
87
|
listbox {background-color: #aa1}
|
89
88
|
listitem {background-color: #aa1}
|
89
|
+
radiogroup {background-color: #abc}
|
90
|
+
radio {background-color: #884 }
|
90
91
|
|
91
92
|
CSS
|
92
93
|
|
@@ -132,6 +133,13 @@ module Shul
|
|
132
133
|
|
133
134
|
end
|
134
135
|
|
136
|
+
class Radiogroup < Component
|
137
|
+
|
138
|
+
end
|
139
|
+
|
140
|
+
class Radio < Component
|
141
|
+
|
142
|
+
end
|
135
143
|
|
136
144
|
def inspect()
|
137
145
|
"#<Shule:%s>" % [self.object_id]
|
@@ -155,7 +163,9 @@ module Shul
|
|
155
163
|
vbox: Shule::Vbox,
|
156
164
|
label: Shule::Label,
|
157
165
|
listbox: Shule::Listbox,
|
158
|
-
listitem: Shule::Listitem
|
166
|
+
listitem: Shule::Listitem,
|
167
|
+
radiogroup: Shule::Radiogroup,
|
168
|
+
radio: Shule::Radio
|
159
169
|
})
|
160
170
|
end
|
161
171
|
|
@@ -533,21 +543,28 @@ module Shul
|
|
533
543
|
|
534
544
|
def radiogroup(e)
|
535
545
|
|
546
|
+
r = nil
|
547
|
+
|
536
548
|
e.xpath('radio').each do |x|
|
537
549
|
|
538
550
|
def x.value() self.attributes[:value] end
|
539
551
|
def x.value=(v) self.attributes[:value] = v end
|
540
552
|
|
541
|
-
x.value = x.attributes[:value]
|
553
|
+
x.value = x.attributes[:value].to_s
|
554
|
+
|
542
555
|
h = x.attributes
|
556
|
+
|
557
|
+
|
543
558
|
@shoes.flow do
|
559
|
+
|
544
560
|
r = @shoes.radio :radiogroup01
|
545
|
-
|
561
|
+
r.click { e.value = x.value }
|
562
|
+
|
546
563
|
r.checked = h[:checked] == 'true'
|
547
564
|
@shoes.para h[:label]
|
548
565
|
end
|
549
566
|
|
550
|
-
end
|
567
|
+
end
|
551
568
|
|
552
569
|
end
|
553
570
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|