shul 0.4.10 → 0.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/shul.rb +20 -18
- 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: a76a506c0ce8f9bd0f2ece39daff4b84a1c497b6
|
4
|
+
data.tar.gz: a97e89ad0271c1364df0bc45a0c8ca66f3bcf953
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db6adec5e86fe10e0c6636362d21c9c8311cbb4e0db76661631d8ad2a6c93a6032dba93fc47bbba4274998557e0f105739e5133b059b41956de5df0de786f2e3
|
7
|
+
data.tar.gz: 3f173ef8c2b5864df6785c55548c3e0051721d23d7ffbeeee370e46e4ce179d3fb0438aa562872603ec8e32a0efa9cc9f4f4903fd7187beabbb2d9bec1767e70
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/shul.rb
CHANGED
@@ -42,6 +42,8 @@ Shul::Main.new Shoes, doc
|
|
42
42
|
|
43
43
|
# modifications
|
44
44
|
#
|
45
|
+
# 13-Aug-2017: feature: A radio button checked value can now be
|
46
|
+
# changed from script
|
45
47
|
# 12-Aug-2017: feature: A Radiogroup can now be created or deleted dynamically
|
46
48
|
# 11-Aug-2017: feature: An element can now be removed using method *remove*.
|
47
49
|
# 10-Aug-2017: feature: A Textbox element can now be created dynamically
|
@@ -75,20 +77,6 @@ require 'domle'
|
|
75
77
|
|
76
78
|
|
77
79
|
|
78
|
-
module RexleObject
|
79
|
-
refine Rexle::Element do
|
80
|
-
|
81
|
-
@obj = nil
|
82
|
-
@obj_children = []
|
83
|
-
|
84
|
-
def obj() @obj end
|
85
|
-
def obj=(obj) @obj = obj end
|
86
|
-
def obj_children() @obj_children end
|
87
|
-
def obj_children=(obj) @obj_children = obj end
|
88
|
-
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
80
|
DEFAULT_SHUL_CSS = <<CSS
|
93
81
|
|
94
82
|
app {background-color: white}
|
@@ -110,12 +98,14 @@ module Shul
|
|
110
98
|
attr_accessor :callback
|
111
99
|
|
112
100
|
class Box < Element
|
113
|
-
attr2_accessor *%i(background-color id margin padding)
|
101
|
+
attr2_accessor *%i(background-color id margin padding onkeypress)
|
114
102
|
|
115
103
|
def initialize(name=nil, attributes: {}, rexle: nil)
|
116
104
|
|
117
105
|
name = self.class.to_s[/\w+$/].downcase
|
118
106
|
super(name, attributes: attributes, rexle: rexle)
|
107
|
+
@obj = nil
|
108
|
+
|
119
109
|
end
|
120
110
|
|
121
111
|
def append_child(obj)
|
@@ -123,6 +113,8 @@ module Shul
|
|
123
113
|
node = self.add obj
|
124
114
|
|
125
115
|
@rexle.callback.add_element(node) if @rexle.callback
|
116
|
+
|
117
|
+
return node
|
126
118
|
end
|
127
119
|
|
128
120
|
def deep_clone()
|
@@ -131,6 +123,12 @@ module Shul
|
|
131
123
|
|
132
124
|
end
|
133
125
|
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
def obj() @obj end
|
130
|
+
def obj=(obj) @obj = obj end
|
131
|
+
|
134
132
|
def remove()
|
135
133
|
@rexle.callback.remove_element(self) if @rexle.callback
|
136
134
|
self.delete
|
@@ -197,6 +195,12 @@ module Shul
|
|
197
195
|
h.merge!(attributes) if attributes
|
198
196
|
super(name, attributes: VisualAttributes.new(h), rexle: rexle)
|
199
197
|
end
|
198
|
+
|
199
|
+
def checked
|
200
|
+
|
201
|
+
self.obj.contents[0].checked = true
|
202
|
+
|
203
|
+
end
|
200
204
|
|
201
205
|
end
|
202
206
|
|
@@ -386,9 +390,7 @@ module Shul
|
|
386
390
|
|
387
391
|
end
|
388
392
|
|
389
|
-
class Window
|
390
|
-
|
391
|
-
using RexleObject
|
393
|
+
class Window
|
392
394
|
|
393
395
|
class Radiogroup
|
394
396
|
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|