Sha256: a75e6bd450912f92d83693fcfef582b874ec613e99355a0338d58961099f36b9

Contents?: true

Size: 413 Bytes

Versions: 7

Compression:

Stored size: 413 Bytes

Contents

# Implements a column action :delete_row
class BookGridWithColumnActions < Netzke::Basepack::GridPanel
  include Netzke::Basepack::ActionColumn

  model "Book"

  column_action :delete_row, :icon => "#{Netzke::Core.ext_uri}/resources/themes/images/default/tree/drop-no.gif"

  js_method :on_delete_row, <<-JS
    function(record){
      this.getSelectionModel().select(record);
      this.onDel();
    }
  JS
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
netzke-basepack-0.7.7 test/basepack_test_app/app/components/book_grid_with_column_actions.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/app/components/book_grid_with_column_actions.rb
netzke-basepack-0.7.6 test/basepack_test_app/app/components/book_grid_with_column_actions.rb
netzke-basepack-0.7.5 test/basepack_test_app/app/components/book_grid_with_column_actions.rb
netzke-basepack-0.7.4 test/basepack_test_app/app/components/book_grid_with_column_actions.rb
netzke-basepack-0.7.3 test/basepack_test_app/app/components/book_grid_with_column_actions.rb
netzke-basepack-0.7.2 test/basepack_test_app/app/components/book_grid_with_column_actions.rb