shul 0.4.5 → 0.4.6

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: 391cde30f463d656662ced80ed2c2f669e245d7f
4
- data.tar.gz: ac1ac3d3920359278a5a27c9de1ab52a07e03de1
3
+ metadata.gz: a0da5571ebfd3c61844b3d07fbe11042acd52bbc
4
+ data.tar.gz: 8042fc5b1139b9632c687740fab48b6773caee8f
5
5
  SHA512:
6
- metadata.gz: 8cefd813589de386c5d1f7fed7258dd320b91d3e0abb74dd4495384b29a89a8c37f7343faa15ea4aaccd6967c9a3268a037b493fd66c053e2f54213a1526e04d
7
- data.tar.gz: a8683ec29c9fd5e7703a2ddfcf3916d152e6c64716bda9b74af1da87007fd2da934975c9da71431b63d9c5adcceba467b67232a14a3f740f8ff0eb83eceda683
6
+ metadata.gz: e8e2ab21d8b2dd5759b8a9547cbfeee1cd3b14d0a48b61ba96f874ddf68aa4c30c5550996ce53a652bc1295a306d0fb28b8661be39783f30079e0438c4c283f5
7
+ data.tar.gz: b4c8714a6275240fc47e3a73763c73459166267853ad2b6a685c7e7618a71c9c1af86414c8ec4f4e8b50e7bacddcf1901589da46c8ed510819b5a9827e5c20a1
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -43,6 +43,7 @@ Shul::Main.new Shoes, doc
43
43
  #
44
44
  # 09-Aug-2017: feature: onkeypress() now implemented.
45
45
  # Listboxes can now be rendered. Radiogroup events now functional
46
+ # Textbox implementation is now functional.
46
47
  # 09-jun-2017: bug fix: The button class has now been implemented with Shule
47
48
  # 22-May-2017: feature: The font size for a label can now be set
48
49
  # 21-May-2017: Added a Document Object Model (DOM) class called Shule
@@ -141,6 +142,10 @@ module Shul
141
142
 
142
143
  end
143
144
 
145
+ class Textbox < Component
146
+
147
+ end
148
+
144
149
  def inspect()
145
150
  "#<Shule:%s>" % [self.object_id]
146
151
  end
@@ -165,7 +170,8 @@ module Shul
165
170
  listbox: Shule::Listbox,
166
171
  listitem: Shule::Listitem,
167
172
  radiogroup: Shule::Radiogroup,
168
- radio: Shule::Radio
173
+ radio: Shule::Radio,
174
+ textbox: Shule::Textbox
169
175
  })
170
176
  end
171
177
 
@@ -371,7 +377,7 @@ module Shul
371
377
 
372
378
  obj = @shoes.method(name).call
373
379
  obj.text = e.attributes[:value]
374
- obj.change {|x| e.value = x.text() if e.value != e.text}
380
+ obj.change {|x| e.value = x.text() if x.text != e.text}
375
381
  e.obj = obj
376
382
 
377
383
  def e.value()
@@ -578,7 +584,7 @@ module Shul
578
584
 
579
585
  # e.g. <textbox id='tb' value='empty' size='40' multiline='true'/>
580
586
  def textbox(e)
581
-
587
+
582
588
  name = if e.attributes[:multiline] \
583
589
  and e.attributes[:multiline] == 'true' then
584
590
  :edit_box
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.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file