Class: ActiveAdmin::Views::Columns

Inherits:
Component show all
Defined in:
lib/active_admin/views/components/columns.rb

Instance Method Summary collapse

Methods inherited from Component

#initialize, #tag_name

Constructor Details

This class inherits a constructor from ActiveAdmin::Component

Instance Method Details

#add_childObject

Override add child to set widths



12
13
14
15
# File 'lib/active_admin/views/components/columns.rb', line 12

def add_child(*)
  super
  calculate_columns!
end

#column(*args, &block) ⇒ Object



7
8
9
# File 'lib/active_admin/views/components/columns.rb', line 7

def column(*args, &block)
  insert_tag Column, *args, &block
end