Class: Netzke::Communitypack::ModelExplorer

Inherits:
Base
  • Object
show all
Includes:
Basepack::ItemPersistence
Defined in:
lib/netzke/communitypack/model_explorer.rb

Overview

2 regions - “grid” and “form”, form displaying the details of the record selected in the grid.

Accepts the following config options:

  • :model - name of the model, e.g. “User”

  • :grid_config (optional) - a config hash passed to the grid

  • :form_config (optional) - a config hash passed to the form

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) server_side_config_options



32
33
34
# File 'lib/netzke/communitypack/model_explorer.rb', line 32

def self.server_side_config_options
  [*super, :form_config, :grid_config]
end

Instance Method Details

- (Object) configure(c)



56
57
58
59
# File 'lib/netzke/communitypack/model_explorer.rb', line 56

def configure(c)
  c.items = [:grid, :form]
  super
end