Class: ActiveScaffold::Config::PrintList

Inherits:
PrintBase show all
Defined in:
lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/print_list.rb

Constant Summary collapse

ActiveScaffold::DataStructures::ActionLink.new('print_list', :label => :print, :type => :table, :security_method => :print_list_authorized?, :popup => true)
@@font_size =
8
@@header_text =
''

Instance Attribute Summary collapse

Attributes inherited from PrintBase

#empty_field_text, #label, #link, #maximum_rows

Attributes inherited from Base

#user

Instance Method Summary collapse

Methods inherited from Base

#crud_type, #formats, #formats=, inherited

Methods included from ActiveScaffold::Configurable

#configure, #method_missing

Constructor Details

#initialize(core_config) ⇒ PrintList

Returns a new instance of PrintList.



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/print_list.rb', line 6

def initialize(core_config)
  super

  @font_size = self.class.font_size
  # # old print_pdf stuff
  # @footer_font_size = self.class.footer_font_size
  # @header_font_size = self.class.header_font_size
  # @header_image = self.class.header_image
  # @header_size = self.class.header_size
  # @header_text = self.class.header_text
  # @orientation = self.class.orientation
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveScaffold::Configurable

Instance Attribute Details

#font_sizeObject

instance-level configuration




43
44
45
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/print_list.rb', line 43

def font_size
  @font_size
end

#header_textObject

attr_accessor :footer_font_size attr_accessor :header_font_size attr_accessor :header_image attr_accessor :header_size



48
49
50
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/print_list.rb', line 48

def header_text
  @header_text
end