Sha256: 80fff6127ab736c118a741a71bc4db0afed3648a45e0fb57b6f00e3bd024c118

Contents?: true

Size: 332 Bytes

Versions: 8

Compression:

Stored size: 332 Bytes

Contents

class PanelWithTools < Netzke::Base
  def configuration
    super.tap do |c|
      c[:tools] = [:refresh, :gear]
    end
  end

  js_method :on_refresh, <<-JS
    function(){
      this.setTitle("Refresh" + " clicked");
    }
  JS

  js_method :on_gear, <<-JS
    function(){
      this.setTitle("Gear" + " clicked")
    }
  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/panel_with_tools.rb
netzke-core-0.7.6 test/core_test_app/app/components/panel_with_tools.rb
netzke-core-0.7.5 test/core_test_app/app/components/panel_with_tools.rb
netzke-core-0.7.4 test/core_test_app/app/components/panel_with_tools.rb
netzke-core-0.7.3 test/core_test_app/app/components/panel_with_tools.rb
netzke-core-0.7.2 test/core_test_app/app/components/panel_with_tools.rb
netzke-core-0.7.1 test/rails_app/app/components/panel_with_tools.rb
netzke-core-0.7.0 test/rails_app/app/components/panel_with_tools.rb