Class: YummyGuide::Administrate::CollectionHelper::CollectionTableDefinition

Inherits:
Struct
  • Object
show all
Defined in:
app/helpers/yummy_guide/administrate/collection_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actions_column_idObject

Returns the value of attribute actions_column_id

Returns:

  • (Object)

    the current value of actions_column_id



23
24
25
# File 'app/helpers/yummy_guide/administrate/collection_helper.rb', line 23

def actions_column_id
  @actions_column_id
end

#adjusted_column_indexesObject

Returns the value of attribute adjusted_column_indexes

Returns:

  • (Object)

    the current value of adjusted_column_indexes



23
24
25
# File 'app/helpers/yummy_guide/administrate/collection_helper.rb', line 23

def adjusted_column_indexes
  @adjusted_column_indexes
end

#colgroup_widthsObject

Returns the value of attribute colgroup_widths

Returns:

  • (Object)

    the current value of colgroup_widths



23
24
25
# File 'app/helpers/yummy_guide/administrate/collection_helper.rb', line 23

def colgroup_widths
  @colgroup_widths
end

#column_idsObject

Returns the value of attribute column_ids

Returns:

  • (Object)

    the current value of column_ids



23
24
25
# File 'app/helpers/yummy_guide/administrate/collection_helper.rb', line 23

def column_ids
  @column_ids
end

#column_namesObject

Returns the value of attribute column_names

Returns:

  • (Object)

    the current value of column_names



23
24
25
# File 'app/helpers/yummy_guide/administrate/collection_helper.rb', line 23

def column_names
  @column_names
end

#fixed_columns_countObject

Returns the value of attribute fixed_columns_count

Returns:

  • (Object)

    the current value of fixed_columns_count



23
24
25
# File 'app/helpers/yummy_guide/administrate/collection_helper.rb', line 23

def fixed_columns_count
  @fixed_columns_count
end

#grid_template_columnsObject

Returns the value of attribute grid_template_columns

Returns:

  • (Object)

    the current value of grid_template_columns



23
24
25
# File 'app/helpers/yummy_guide/administrate/collection_helper.rb', line 23

def grid_template_columns
  @grid_template_columns
end

#mobile_fixed_columns_countObject

Returns the value of attribute mobile_fixed_columns_count

Returns:

  • (Object)

    the current value of mobile_fixed_columns_count



23
24
25
# File 'app/helpers/yummy_guide/administrate/collection_helper.rb', line 23

def mobile_fixed_columns_count
  @mobile_fixed_columns_count
end

#sticky_columnsObject

Returns the value of attribute sticky_columns

Returns:

  • (Object)

    the current value of sticky_columns



23
24
25
# File 'app/helpers/yummy_guide/administrate/collection_helper.rb', line 23

def sticky_columns
  @sticky_columns
end

#table_styleObject

Returns the value of attribute table_style

Returns:

  • (Object)

    the current value of table_style



23
24
25
# File 'app/helpers/yummy_guide/administrate/collection_helper.rb', line 23

def table_style
  @table_style
end

Instance Method Details

#column_id(column_name) ⇒ Object



40
41
42
# File 'app/helpers/yummy_guide/administrate/collection_helper.rb', line 40

def column_id(column_name)
  column_ids[column_name.to_sym]
end

#sticky_column(column_name) ⇒ Object



36
37
38
# File 'app/helpers/yummy_guide/administrate/collection_helper.rb', line 36

def sticky_column(column_name)
  sticky_columns[column_name.to_sym] || {}
end