Sha256: bcfbbd8c76d6bbee378b38a234c1dcfb41e01f80ab36577dc031665ac9070e72

Contents?: true

Size: 599 Bytes

Versions: 8

Compression:

Stored size: 599 Bytes

Contents

# Loads a component with custom CSS, to make sure that also dynamically loaded components get the correct CSS applied
class LoaderOfComponentWithCustomCss < Netzke::Base
  component :component_with_custom_css, :class_name => "ComponentWithCustomCss", :lazy_loading => true

  action :load_component_with_custom_css

  js_properties :title => "LoaderOfComponentWithCustomCss", :layout => 'fit', :bbar => [:load_component_with_custom_css.action]

  js_method :on_load_component_with_custom_css, <<-JS
    function(params){
      this.loadComponent({name: 'component_with_custom_css'});
    }
  JS
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
netzke-core-0.7.7 test/core_test_app/app/components/loader_of_component_with_custom_css.rb
netzke-core-0.7.6 test/core_test_app/app/components/loader_of_component_with_custom_css.rb
netzke-core-0.7.5 test/core_test_app/app/components/loader_of_component_with_custom_css.rb
netzke-core-0.7.4 test/core_test_app/app/components/loader_of_component_with_custom_css.rb
netzke-core-0.7.3 test/core_test_app/app/components/loader_of_component_with_custom_css.rb
netzke-core-0.7.2 test/core_test_app/app/components/loader_of_component_with_custom_css.rb
netzke-core-0.7.1 test/rails_app/app/components/loader_of_component_with_custom_css.rb
netzke-core-0.7.0 test/rails_app/app/components/loader_of_component_with_custom_css.rb