Sha256: 51d9f323547fd494492b9e4c5d8c9923c4e6853cdf81d3fbc7cc3b9ad749529f

Contents?: true

Size: 507 Bytes

Versions: 4

Compression:

Stored size: 507 Bytes

Contents

module Netzke
  class Wrapper < Base
    def self.js_default_config
      # make us an invisible 'fit'-layout panel
      super.merge({
        :layout => 'fit',
        :title => false,
        :border => false,
        :items => ["new Ext.componentCache[config.itemConfig.widgetClassName](config.itemConfig)".l]
      })
    end

    def initial_aggregatees
      # item_name = config[:item][:name] ||= 'item'
      # {item_name.to_sym => config[:item]}
      {:item => config[:item]}
    end
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
netzke-basepack-0.2.2 lib/netzke/wrapper.rb
netzke-basepack-0.2.0 lib/netzke/wrapper.rb
netzke-basepack-0.2.0.1 lib/netzke/wrapper.rb
netzke-basepack-0.3.0 lib/netzke/wrapper.rb