Class: DataGrid::DataSourceArray

Inherits:
Object
  • Object
show all
Defined in:
lib/data_grid/data_source_array.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#data_gridObject

Returns the value of attribute data_grid.



6
7
8
# File 'lib/data_grid/data_source_array.rb', line 6

def data_grid
  @data_grid
end

Instance Method Details

#prepare_dataObject

Main function which prepares data



9
10
11
12
13
14
15
16
17
18
# File 'lib/data_grid/data_source_array.rb', line 9

def prepare_data
  initial_data_eval 
  initial_sorting if self.data_grid.sorting?
  filter
  global_summary_array
  pagination
  summary_array
  self.data_grid.row_styler
  prepare_data_for_filters
end