Module: Datagrid::Columns

Defined in:
lib/datagrid/columns.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: Column, DataRow

Instance Method Summary collapse

Instance Method Details

#batch_sizeInteger

Returns:

  • (Integer)

See Also:



# File 'lib/datagrid/columns.rb', line 31

#batch_size=Integer

Returns Specify a default batch size when generating CSV or just data.

Examples:

self.batch_size = 500
# Disable batches
self.batch_size = nil

Parameters:

  • value (Integer)

    Specify a default batch size when generating CSV or just data. Default: 1000

Returns:

  • (Integer)

    Specify a default batch size when generating CSV or just data.



# File 'lib/datagrid/columns.rb', line 22

#default_column_optionsHash

Returns:

  • (Hash)

See Also:



# File 'lib/datagrid/columns.rb', line 18

#default_column_options=Hash

Returns default options passed to #column method call.

Examples:

# Disable default order
self.default_column_options = { order: false }
# Makes entire report HTML
self.default_column_options = { html: true }

Parameters:

  • value (Hash)

    default options passed to #column method call

Returns:

  • (Hash)

    default options passed to #column method call



# File 'lib/datagrid/columns.rb', line 9