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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/shul.rb +9 -3
- 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: a0da5571ebfd3c61844b3d07fbe11042acd52bbc
|
4
|
+
data.tar.gz: 8042fc5b1139b9632c687740fab48b6773caee8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8e2ab21d8b2dd5759b8a9547cbfeee1cd3b14d0a48b61ba96f874ddf68aa4c30c5550996ce53a652bc1295a306d0fb28b8661be39783f30079e0438c4c283f5
|
7
|
+
data.tar.gz: b4c8714a6275240fc47e3a73763c73459166267853ad2b6a685c7e7618a71c9c1af86414c8ec4f4e8b50e7bacddcf1901589da46c8ed510819b5a9827e5c20a1
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/shul.rb
CHANGED
@@ -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|
|
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
metadata.gz.sig
CHANGED
Binary file
|