Module: Netzke::Basepack

Defined in:
lib/netzke-basepack.rb,
lib/netzke/basepack.rb,
lib/netzke/basepack/fields.rb,
lib/netzke/basepack/columns.rb,
lib/netzke/basepack/version.rb,
lib/netzke/basepack/attributes.rb,
lib/netzke/basepack/attr_config.rb,
lib/netzke/basepack/paging_form.rb,
lib/netzke/basepack/field_config.rb,
lib/netzke/basepack/search_panel.rb,
lib/netzke/basepack/action_column.rb,
lib/netzke/basepack/active_record.rb,
lib/netzke/basepack/column_config.rb,
lib/netzke/basepack/data_accessor.rb,
lib/netzke/basepack/query_builder.rb,
lib/netzke/basepack/search_window.rb,
lib/netzke/basepack/grid_live_search.rb,
lib/netzke/basepack/item_persistence.rb,
lib/netzke/basepack/dynamic_tab_panel.rb,
lib/netzke/basepack/record_form_window.rb,
lib/netzke/basepack/item_persistence/events_plugin.rb

Defined Under Namespace

Modules: ActionColumn, ActiveRecord, Attributes, Columns, DataAccessor, DataAdapters, Fields, ItemPersistence Classes: AttrConfig, ColumnConfig, DynamicTabPanel, Engine, FieldConfig, GridLiveSearch, PagingForm, QueryBuilder, RecordFormWindow, SearchPanel, SearchWindow

Constant Summary

VERSION =
"1.0.1.1"

Class Method Summary collapse

Class Method Details

.initObject

Called from netzke-basepack.rb



20
21
22
23
24
25
26
# File 'lib/netzke/basepack.rb', line 20

def init
  %w[tristate netzkeremotecombo xdatetime basepack grid/columns grid/event_handlers].each do |name|
    Netzke::Core.ext_javascripts << "#{File.dirname(__FILE__)}/../../javascripts/#{name}.js"
  end

  Netzke::Core.ext_stylesheets << "#{File.dirname(__FILE__)}/../../stylesheets/basepack.css"
end

.setup {|_self| ... } ⇒ Object

Use this to confirure Basepack in the initializers, e.g.:

Netzke::Basepack.setup do |config|
  config.icons_uri = "/images/famfamfam/icons"
end

Yields:

  • (_self)

Yield Parameters:



33
34
35
# File 'lib/netzke/basepack.rb', line 33

def setup
  yield self
end