netzke-core 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +9 -2
- data/Rakefile +10 -9
- data/javascripts/base.js +6 -3
- data/javascripts/ext.js +6 -21
- data/lib/netzke/core/version.rb +1 -1
- data/lib/netzke/javascript.rb +1 -1
- data/lib/netzke/railz/action_view_ext/ext.rb +1 -1
- data/netzke-core.gemspec +158 -152
- data/test/{rails_app → core_test_app}/.gitignore +0 -0
- data/test/core_test_app/.rvmrc +1 -0
- data/test/{rails_app → core_test_app}/Gemfile +1 -1
- data/test/{rails_app → core_test_app}/Gemfile.lock +55 -52
- data/test/{rails_app → core_test_app}/README +0 -0
- data/test/{rails_app → core_test_app}/Rakefile +0 -0
- data/test/{rails_app → core_test_app}/app/components/border_layout_panel.rb +0 -0
- data/test/core_test_app/app/components/card_component_loader.rb +25 -0
- data/test/{rails_app → core_test_app}/app/components/component_loader.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/component_with_actions.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/component_with_custom_css.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/component_with_custom_css/stylesheets/custom.css +0 -0
- data/test/{rails_app → core_test_app}/app/components/component_with_included_js.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/component_with_js_mixin.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/component_with_js_mixin/javascripts/component_with_js_mixin.js +0 -0
- data/test/{rails_app → core_test_app}/app/components/component_with_js_mixin/javascripts/extra_one.js +0 -0
- data/test/{rails_app → core_test_app}/app/components/component_with_js_mixin/javascripts/extra_two.js +0 -0
- data/test/{rails_app → core_test_app}/app/components/component_with_js_mixin/javascripts/method_set_one.js +0 -0
- data/test/{rails_app → core_test_app}/app/components/component_with_js_mixin/javascripts/method_set_two.js +0 -0
- data/test/{rails_app → core_test_app}/app/components/component_with_nested_through.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/component_with_session_persistence.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/deprecated/server_caller.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/dynamic_tab_panel.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/dynamic_tab_panel/javascripts/dynamic_tab_panel.js +0 -0
- data/test/{rails_app → core_test_app}/app/components/ext_direct/composite.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/ext_direct/details.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/ext_direct/selector.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/ext_direct/statistics.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/extended_component_with_actions.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/extended_component_with_js_mixin.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/extended_component_with_js_mixin/javascripts/some_method_set.js +0 -0
- data/test/{rails_app → core_test_app}/app/components/extended_localized_panel.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/extended_server_caller.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/hello_world_component.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/included.js +1 -1
- data/test/{rails_app → core_test_app}/app/components/kinda_complex_component.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/kinda_complex_component/basic_stuff.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/kinda_complex_component/extra_stuff.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/loader_of_component_with_custom_css.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/localized_panel.rb +0 -0
- data/test/core_test_app/app/components/multipane_component_loader.rb +42 -0
- data/test/{rails_app → core_test_app}/app/components/nested_component.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/panel_with_plugin.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/panel_with_tools.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/plugin_with_components.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/scoped_components/deep_scoped_components/some_deep_scoped_component.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/scoped_components/extended_scoped_component.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/scoped_components/some_scoped_component.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/server_caller.rb +1 -1
- data/test/{rails_app → core_test_app}/app/components/server_counter.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/simple_component.rb +0 -1
- data/test/{rails_app → core_test_app}/app/components/simple_panel.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/simple_tab_panel.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/simple_window.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/some_composite.rb +1 -2
- data/test/{rails_app → core_test_app}/app/components/some_ext_component.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/some_plugin.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/touch/hello_world_component.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/touch/server_caller.rb +0 -0
- data/test/{rails_app → core_test_app}/app/components/touch/simple_carousel.rb +0 -0
- data/test/{rails_app → core_test_app}/app/controllers/application_controller.rb +0 -0
- data/test/{rails_app → core_test_app}/app/controllers/components_controller.rb +0 -0
- data/test/{rails_app → core_test_app}/app/controllers/simple_rails_controller.rb +0 -0
- data/test/{rails_app → core_test_app}/app/controllers/touch_controller.rb +0 -0
- data/test/{rails_app → core_test_app}/app/controllers/welcome_controller.rb +0 -0
- data/test/{rails_app → core_test_app}/app/helpers/application_helper.rb +0 -0
- data/test/{rails_app → core_test_app}/app/helpers/touch_helper.rb +0 -0
- data/test/{rails_app → core_test_app}/app/views/components/panel_with_autoload.html.erb +0 -0
- data/test/{rails_app → core_test_app}/app/views/components/some_tab_panel.html.erb +2 -2
- data/test/{rails_app → core_test_app}/app/views/layouts/application.html.erb +0 -0
- data/test/{rails_app → core_test_app}/app/views/layouts/nested.html.erb +0 -0
- data/test/{rails_app → core_test_app}/app/views/layouts/touch.html.erb +0 -0
- data/test/{rails_app → core_test_app}/app/views/simple_rails/multiple_nested.html.erb +0 -0
- data/test/{rails_app → core_test_app}/app/views/simple_rails/multiple_of_different_class.html.erb +0 -0
- data/test/{rails_app → core_test_app}/app/views/simple_rails/multiple_of_same_class.html.erb +0 -0
- data/test/{rails_app → core_test_app}/config.ru +0 -0
- data/test/{rails_app → core_test_app}/config/application.rb +0 -0
- data/test/{rails_app → core_test_app}/config/boot.rb +0 -0
- data/test/{rails_app → core_test_app}/config/database.yml +0 -0
- data/test/{rails_app → core_test_app}/config/environment.rb +0 -0
- data/test/{rails_app → core_test_app}/config/environments/development.rb +1 -1
- data/test/{rails_app → core_test_app}/config/environments/production.rb +0 -0
- data/test/{rails_app → core_test_app}/config/environments/test.rb +0 -0
- data/test/{rails_app → core_test_app}/config/initializers/backtrace_silencers.rb +0 -0
- data/test/{rails_app → core_test_app}/config/initializers/inflections.rb +0 -0
- data/test/{rails_app → core_test_app}/config/initializers/mime_types.rb +0 -0
- data/test/{rails_app → core_test_app}/config/initializers/netzke.rb +0 -0
- data/test/{rails_app → core_test_app}/config/initializers/secret_token.rb +0 -0
- data/test/{rails_app → core_test_app}/config/initializers/session_store.rb +1 -1
- data/test/{rails_app → core_test_app}/config/locales/en.yml +0 -0
- data/test/{rails_app → core_test_app}/config/locales/es.yml +0 -0
- data/test/{rails_app → core_test_app}/config/routes.rb +0 -0
- data/test/{rails_app → core_test_app}/db/development_structure.sql +0 -0
- data/test/{rails_app → core_test_app}/db/migrate/20110110132720_create_netzke_component_states.rb +0 -0
- data/test/{rails_app → core_test_app}/db/schema.rb +0 -0
- data/test/{rails_app → core_test_app}/db/seeds.rb +0 -0
- data/test/{rails_app → core_test_app}/features/actions_and_tools.feature +0 -0
- data/test/{rails_app → core_test_app}/features/basic.feature +0 -0
- data/test/{rails_app → core_test_app}/features/client-server.feature +0 -0
- data/test/{rails_app → core_test_app}/features/complex_component.feature +0 -0
- data/test/{rails_app → core_test_app}/features/component.feature +0 -0
- data/test/{rails_app → core_test_app}/features/component_loader.feature +0 -0
- data/test/{rails_app → core_test_app}/features/composition.feature +0 -0
- data/test/{rails_app → core_test_app}/features/custom_css.feature +0 -0
- data/test/{rails_app → core_test_app}/features/ext.direct.feature +0 -0
- data/test/{rails_app → core_test_app}/features/file_inclusion.feature +0 -0
- data/test/{rails_app → core_test_app}/features/i18n.feature +0 -0
- data/test/{rails_app → core_test_app}/features/inheritance.feature +0 -0
- data/test/{rails_app → core_test_app}/features/js_include.feature +0 -0
- data/test/{rails_app → core_test_app}/features/nested_views.feature +0 -0
- data/test/{rails_app → core_test_app}/features/persistence.feature +0 -0
- data/test/{rails_app → core_test_app}/features/plugin.feature +0 -0
- data/test/{rails_app → core_test_app}/features/rails_views.feature +0 -0
- data/test/{rails_app → core_test_app}/features/scopes.feature +0 -0
- data/test/{rails_app → core_test_app}/features/step_definitions/custom_css_steps.rb +0 -0
- data/test/{rails_app → core_test_app}/features/step_definitions/generic_steps.rb +0 -0
- data/test/{rails_app → core_test_app}/features/step_definitions/touch_steps.rb +0 -0
- data/test/{rails_app → core_test_app}/features/step_definitions/web_steps.rb +0 -0
- data/test/{rails_app → core_test_app}/features/support/env.rb +0 -0
- data/test/{rails_app → core_test_app}/features/support/paths.rb +0 -0
- data/test/{rails_app → core_test_app}/features/touch.feature +0 -0
- data/test/{rails_app → core_test_app}/lib/tasks/.gitkeep +0 -0
- data/test/{rails_app → core_test_app}/public/404.html +0 -0
- data/test/{rails_app → core_test_app}/public/422.html +0 -0
- data/test/{rails_app → core_test_app}/public/500.html +0 -0
- data/test/{rails_app → core_test_app}/public/favicon.ico +0 -0
- data/test/{rails_app → core_test_app}/public/images/rails.png +0 -0
- data/test/{rails_app → core_test_app}/public/robots.txt +0 -0
- data/test/core_test_app/public/stylesheets/all.css +6982 -0
- data/test/{rails_app → core_test_app}/script/rails +0 -0
- data/test/{rails_app → core_test_app}/spec/component/actions_spec.rb +0 -0
- data/test/{rails_app → core_test_app}/spec/component/base_spec.rb +0 -0
- data/test/{rails_app → core_test_app}/spec/component/component_spec.rb +0 -0
- data/test/{rails_app → core_test_app}/spec/component/composition_spec.rb +0 -0
- data/test/{rails_app → core_test_app}/spec/component/configuration_spec.rb +0 -0
- data/test/{rails_app → core_test_app}/spec/component/javascript_spec.rb +0 -0
- data/test/{rails_app → core_test_app}/spec/component/state_spec.rb +0 -0
- data/test/{rails_app → core_test_app}/spec/core_ext_spec.rb +0 -0
- data/test/{rails_app → core_test_app}/spec/spec.opt +0 -0
- data/test/{rails_app → core_test_app}/spec/spec_helper.rb +0 -0
- data/test/{rails_app/vendor/plugins/.gitkeep → core_test_app/tmp/restart.txt} +0 -0
- data/test/core_test_app/vendor/plugins/.gitkeep +0 -0
- metadata +176 -179
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
rvm 1.9.2
|
@@ -1,18 +1,18 @@
|
|
1
1
|
PATH
|
2
2
|
remote: vendor/gems/netzke-persistence
|
3
3
|
specs:
|
4
|
-
netzke-persistence (0.
|
4
|
+
netzke-persistence (0.1.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: http://rubygems.org/
|
8
8
|
specs:
|
9
9
|
abstract (1.0.0)
|
10
|
-
actionmailer (3.0.
|
11
|
-
actionpack (= 3.0.
|
12
|
-
mail (~> 2.2.
|
13
|
-
actionpack (3.0.
|
14
|
-
activemodel (= 3.0.
|
15
|
-
activesupport (= 3.0.
|
10
|
+
actionmailer (3.0.10)
|
11
|
+
actionpack (= 3.0.10)
|
12
|
+
mail (~> 2.2.19)
|
13
|
+
actionpack (3.0.10)
|
14
|
+
activemodel (= 3.0.10)
|
15
|
+
activesupport (= 3.0.10)
|
16
16
|
builder (~> 2.1.2)
|
17
17
|
erubis (~> 2.6.6)
|
18
18
|
i18n (~> 0.5.0)
|
@@ -20,82 +20,83 @@ GEM
|
|
20
20
|
rack-mount (~> 0.6.14)
|
21
21
|
rack-test (~> 0.5.7)
|
22
22
|
tzinfo (~> 0.3.23)
|
23
|
-
activemodel (3.0.
|
24
|
-
activesupport (= 3.0.
|
23
|
+
activemodel (3.0.10)
|
24
|
+
activesupport (= 3.0.10)
|
25
25
|
builder (~> 2.1.2)
|
26
26
|
i18n (~> 0.5.0)
|
27
|
-
activerecord (3.0.
|
28
|
-
activemodel (= 3.0.
|
29
|
-
activesupport (= 3.0.
|
30
|
-
arel (~> 2.0.
|
27
|
+
activerecord (3.0.10)
|
28
|
+
activemodel (= 3.0.10)
|
29
|
+
activesupport (= 3.0.10)
|
30
|
+
arel (~> 2.0.10)
|
31
31
|
tzinfo (~> 0.3.23)
|
32
|
-
activeresource (3.0.
|
33
|
-
activemodel (= 3.0.
|
34
|
-
activesupport (= 3.0.
|
35
|
-
activesupport (3.0.
|
32
|
+
activeresource (3.0.10)
|
33
|
+
activemodel (= 3.0.10)
|
34
|
+
activesupport (= 3.0.10)
|
35
|
+
activesupport (3.0.10)
|
36
|
+
addressable (2.2.6)
|
36
37
|
arel (2.0.10)
|
37
38
|
builder (2.1.2)
|
38
|
-
capybara (1.0.
|
39
|
+
capybara (1.0.1)
|
39
40
|
mime-types (>= 1.16)
|
40
41
|
nokogiri (>= 1.3.3)
|
41
42
|
rack (>= 1.0.0)
|
42
43
|
rack-test (>= 0.5.4)
|
43
|
-
selenium-webdriver (~>
|
44
|
+
selenium-webdriver (~> 2.0)
|
44
45
|
xpath (~> 0.1.4)
|
45
|
-
childprocess (0.
|
46
|
+
childprocess (0.2.2)
|
46
47
|
ffi (~> 1.0.6)
|
47
|
-
|
48
|
-
cucumber (1.0.0)
|
48
|
+
cucumber (1.0.2)
|
49
49
|
builder (>= 2.1.2)
|
50
50
|
diff-lcs (>= 1.1.2)
|
51
|
-
gherkin (~> 2.4.
|
51
|
+
gherkin (~> 2.4.5)
|
52
52
|
json (>= 1.4.6)
|
53
53
|
term-ansicolor (>= 1.0.5)
|
54
|
-
cucumber-rails (1.0.
|
54
|
+
cucumber-rails (1.0.2)
|
55
55
|
capybara (>= 1.0.0)
|
56
56
|
cucumber (~> 1.0.0)
|
57
|
-
nokogiri (>= 1.4.
|
58
|
-
rack-test (>= 0.5.7)
|
57
|
+
nokogiri (>= 1.4.6)
|
59
58
|
database_cleaner (0.6.7)
|
60
|
-
diff-lcs (1.1.
|
59
|
+
diff-lcs (1.1.3)
|
61
60
|
erubis (2.6.6)
|
62
61
|
abstract (>= 1.0.0)
|
63
62
|
ffi (1.0.9)
|
64
|
-
gherkin (2.4.
|
63
|
+
gherkin (2.4.16)
|
65
64
|
json (>= 1.4.6)
|
66
65
|
i18n (0.5.0)
|
67
|
-
json (1.5.
|
68
|
-
json_pure (1.5.
|
69
|
-
|
70
|
-
|
71
|
-
|
66
|
+
json (1.5.4)
|
67
|
+
json_pure (1.5.4)
|
68
|
+
spruz (~> 0.2.8)
|
69
|
+
launchy (2.0.5)
|
70
|
+
addressable (~> 2.2.6)
|
72
71
|
mail (2.2.19)
|
73
72
|
activesupport (>= 2.3.6)
|
74
73
|
i18n (>= 0.4.0)
|
75
74
|
mime-types (~> 1.16)
|
76
75
|
treetop (~> 1.4.8)
|
77
76
|
mime-types (1.16)
|
78
|
-
nokogiri (1.
|
79
|
-
polyglot (0.3.
|
77
|
+
nokogiri (1.5.0)
|
78
|
+
polyglot (0.3.2)
|
80
79
|
rack (1.2.3)
|
81
80
|
rack-mount (0.6.14)
|
82
81
|
rack (>= 1.0.0)
|
83
82
|
rack-test (0.5.7)
|
84
83
|
rack (>= 1.0)
|
85
|
-
rails (3.0.
|
86
|
-
actionmailer (= 3.0.
|
87
|
-
actionpack (= 3.0.
|
88
|
-
activerecord (= 3.0.
|
89
|
-
activeresource (= 3.0.
|
90
|
-
activesupport (= 3.0.
|
84
|
+
rails (3.0.10)
|
85
|
+
actionmailer (= 3.0.10)
|
86
|
+
actionpack (= 3.0.10)
|
87
|
+
activerecord (= 3.0.10)
|
88
|
+
activeresource (= 3.0.10)
|
89
|
+
activesupport (= 3.0.10)
|
91
90
|
bundler (~> 1.0)
|
92
|
-
railties (= 3.0.
|
93
|
-
railties (3.0.
|
94
|
-
actionpack (= 3.0.
|
95
|
-
activesupport (= 3.0.
|
91
|
+
railties (= 3.0.10)
|
92
|
+
railties (3.0.10)
|
93
|
+
actionpack (= 3.0.10)
|
94
|
+
activesupport (= 3.0.10)
|
96
95
|
rake (>= 0.8.7)
|
96
|
+
rdoc (~> 3.4)
|
97
97
|
thor (~> 0.14.4)
|
98
98
|
rake (0.9.2)
|
99
|
+
rdoc (3.9.4)
|
99
100
|
rspec (2.6.0)
|
100
101
|
rspec-core (~> 2.6.0)
|
101
102
|
rspec-expectations (~> 2.6.0)
|
@@ -110,20 +111,22 @@ GEM
|
|
110
111
|
railties (~> 3.0)
|
111
112
|
rspec (~> 2.6.0)
|
112
113
|
rubyzip (0.9.4)
|
113
|
-
selenium-webdriver (
|
114
|
-
childprocess (>= 0.1
|
114
|
+
selenium-webdriver (2.5.0)
|
115
|
+
childprocess (>= 0.2.1)
|
115
116
|
ffi (>= 1.0.7)
|
116
117
|
json_pure
|
117
118
|
rubyzip
|
118
119
|
spork (0.8.5)
|
119
|
-
|
120
|
+
spruz (0.2.13)
|
121
|
+
sqlite3 (1.3.4)
|
120
122
|
sqlite3-ruby (1.3.3)
|
121
123
|
sqlite3 (>= 1.3.3)
|
122
|
-
term-ansicolor (1.0.
|
124
|
+
term-ansicolor (1.0.6)
|
123
125
|
thor (0.14.6)
|
124
|
-
treetop (1.4.
|
126
|
+
treetop (1.4.10)
|
127
|
+
polyglot
|
125
128
|
polyglot (>= 0.3.1)
|
126
|
-
tzinfo (0.3.
|
129
|
+
tzinfo (0.3.29)
|
127
130
|
xpath (0.1.4)
|
128
131
|
nokogiri (~> 1.3)
|
129
132
|
|
@@ -137,7 +140,7 @@ DEPENDENCIES
|
|
137
140
|
database_cleaner
|
138
141
|
launchy
|
139
142
|
netzke-persistence!
|
140
|
-
rails (
|
143
|
+
rails (~> 3.0.10)
|
141
144
|
rspec-rails
|
142
145
|
spork
|
143
146
|
sqlite3-ruby
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,25 @@
|
|
1
|
+
class CardComponentLoader < Netzke::Base
|
2
|
+
js_property :layout, :card
|
3
|
+
|
4
|
+
action :load_server_caller
|
5
|
+
action :load_extended_server_caller
|
6
|
+
|
7
|
+
js_property :bbar, [:load_server_caller.action, :load_extended_server_caller.action]
|
8
|
+
|
9
|
+
component :server_caller
|
10
|
+
component :extended_server_caller
|
11
|
+
|
12
|
+
js_method :on_load_server_caller, <<-JS
|
13
|
+
function(){
|
14
|
+
var existing = this.items.findBy(function(i){ return i.getId() == this.getId() + "__server_caller"}, this);
|
15
|
+
if (existing) this.getLayout().setActiveItem(existing); else this.loadNetzkeComponent({name: 'server_caller', container: this, append: true, callback: function(el){this.getLayout().setActiveItem(el)}, scope: this});
|
16
|
+
}
|
17
|
+
JS
|
18
|
+
|
19
|
+
js_method :on_load_extended_server_caller, <<-JS
|
20
|
+
function(){
|
21
|
+
var existing = this.items.findBy(function(i){ return i.getId() == this.getId() + "__extended_server_caller"}, this);
|
22
|
+
if (existing) this.getLayout().setActiveItem(existing); else this.loadNetzkeComponent({name: 'extended_server_caller', container: this, append: true, callback: function(el){this.getLayout().setActiveItem(el)}, scope: this});
|
23
|
+
}
|
24
|
+
JS
|
25
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,42 @@
|
|
1
|
+
class MultipaneComponentLoader < Netzke::Base
|
2
|
+
js_property :layout, {:type => :hbox, :align => :stretch}
|
3
|
+
js_property :prevent_header, true
|
4
|
+
|
5
|
+
action :load_server_caller, :handler => :load_handler
|
6
|
+
action :load_component_loader, :handler => :load_handler
|
7
|
+
|
8
|
+
def default_config
|
9
|
+
super.tap do |c|
|
10
|
+
c[:items] = [{
|
11
|
+
:title => "Container One",
|
12
|
+
:xtype => :panel,
|
13
|
+
:height => 200,
|
14
|
+
:flex => 1,
|
15
|
+
:border => true,
|
16
|
+
:bbar => [:load_server_caller.action, :load_component_loader.action],
|
17
|
+
:layout => :fit
|
18
|
+
},{
|
19
|
+
:title => "Container Two",
|
20
|
+
:xtype => :panel,
|
21
|
+
:height => 200,
|
22
|
+
:flex => 1,
|
23
|
+
:layout => :fit
|
24
|
+
}]
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
component :server_caller
|
29
|
+
|
30
|
+
js_method :load_handler, <<-JS
|
31
|
+
function(button){
|
32
|
+
var container = button.ownerCt.ownerCt;
|
33
|
+
this.loadNetzkeComponent({name: 'server_caller', container: container});
|
34
|
+
}
|
35
|
+
JS
|
36
|
+
|
37
|
+
def deliver_component_endpoint(params)
|
38
|
+
sleep 1 # for visual evaluation
|
39
|
+
super
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/test/{rails_app → core_test_app}/app/components/scoped_components/extended_scoped_component.rb
RENAMED
File without changes
|
data/test/{rails_app → core_test_app}/app/components/scoped_components/some_scoped_component.rb
RENAMED
File without changes
|
@@ -4,7 +4,7 @@ class ServerCaller < Netzke::Base
|
|
4
4
|
js_properties(
|
5
5
|
:title => "Server Caller",
|
6
6
|
:html => "Wow",
|
7
|
-
:
|
7
|
+
:bbar => [:bug_server.action] # TODO: used to be bbar, but Ext 4.0.2 has problems with rendering it!
|
8
8
|
)
|
9
9
|
|
10
10
|
js_method :on_bug_server, <<-JS
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|