Class: Eac::DataTableHelper::Setup

Inherits:
Object
  • Object
show all
Defined in:
lib/eac/data_table_helper/setup.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSetup

Returns a new instance of Setup.



8
9
10
11
# File 'lib/eac/data_table_helper/setup.rb', line 8

def initialize
  @columns = []
  @paging = true
end

Instance Attribute Details

#columnsObject (readonly)

Returns the value of attribute columns.



5
6
7
# File 'lib/eac/data_table_helper/setup.rb', line 5

def columns
  @columns
end

#pagingObject

Returns the value of attribute paging.



6
7
8
# File 'lib/eac/data_table_helper/setup.rb', line 6

def paging
  @paging
end

Instance Method Details

#column(label, path = nil, &block) ⇒ Object



13
14
15
# File 'lib/eac/data_table_helper/setup.rb', line 13

def column(label, path = nil, &block)
  @columns << ::Eac::DataTableHelper::Column.new(label, path, block)
end