extjs-mvc 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/action_view/helpers/component.rb +24 -0
- data/lib/extjs-mvc.rb +1 -0
- data/lib/mvc.rb +1 -0
- metadata +3 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.14
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module ExtJS::Helpers
|
2
|
+
module Component
|
3
|
+
def extjs_create_component(params)
|
4
|
+
ExtJS::Component.new(params)
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
class ExtJS::Component
|
10
|
+
|
11
|
+
def initialize(params)
|
12
|
+
@params = params
|
13
|
+
@params[:items] = [] if @params[:items].nil?
|
14
|
+
end
|
15
|
+
|
16
|
+
def add(p)
|
17
|
+
@params[:items] << p
|
18
|
+
end
|
19
|
+
|
20
|
+
def render
|
21
|
+
cmp = "Ext.ComponentMgr.create(#{@params.to_json});"
|
22
|
+
"<script>Ext.onReady(function() {#{cmp}});</script>"
|
23
|
+
end
|
24
|
+
end
|
data/lib/extjs-mvc.rb
CHANGED
data/lib/mvc.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extjs-mvc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Scott
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-09-03 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -39,6 +39,7 @@ files:
|
|
39
39
|
- Rakefile
|
40
40
|
- VERSION
|
41
41
|
- lib/action_controller/controller.rb
|
42
|
+
- lib/action_view/helpers/component.rb
|
42
43
|
- lib/action_view/helpers/store.rb
|
43
44
|
- lib/active_record/model.rb
|
44
45
|
- lib/dm/model.rb
|