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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43dfe1bc74517a3b8469a82d65424584cbe8f38c
4
- data.tar.gz: 555b493057c36c7c9e0a1491d157a8b5cbeeaa20
3
+ metadata.gz: 391cde30f463d656662ced80ed2c2f669e245d7f
4
+ data.tar.gz: ac1ac3d3920359278a5a27c9de1ab52a07e03de1
5
5
  SHA512:
6
- metadata.gz: 7bd795c58fec0463f455c9b2f1599c01475a6deef8ac7021b43c45baa5c8bf14578737cb1d958c6373a4d1da5ffb9d2845bc09a3aac98343f04209e1669085e6
7
- data.tar.gz: 874433ee295b8085826fb7126e28e78b32afd434cd96bf8b50953d0cf2180893876b690346fe30b5312c71212be24ee2bf532bdc78909777f0ff205b58a7398a
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shul
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file