Sha256: 103145f8a58cd42f83f7c86c7d635c7094dcebd487364a4d48f366a295ad00cf

Contents?: true

Size: 331 Bytes

Versions: 3

Compression:

Stored size: 331 Bytes

Contents

class Tools < Netzke::Base
  def configure(c)
    super
    c.tools = [:refresh, :gear]
  end

  js_configure do |c|
    c.on_refresh = <<-JS
      function(){
        this.setTitle("Refresh tool clicked");
      }
    JS

    c.on_gear = <<-JS
      function(){
        this.setTitle("Gear tool clicked")
      }
    JS
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
netzke-core-0.8.4 test/core_test_app/app/components/tools.rb
netzke-core-0.8.3 test/core_test_app/app/components/tools.rb
netzke-core-0.8.2 test/core_test_app/app/components/tools.rb