Class: ActiveAdmin::Views::Columns
- Defined in:
- lib/active_admin/views/components/columns.rb
Overview
Columns Component
This is deprecated.
The Columns component allows you draw content into scalable columns using CSS Grid.
To create a two column layout:
columns do
column do
span "Column # 1"
end
column do
span "Column # 2"
end
end
Apply Tailwind utilities to either the columns or column component to set additional or override base styles.
Instance Method Summary collapse
Instance Method Details
#build(*args) ⇒ Object
27 28 29 30 |
# File 'lib/active_admin/views/components/columns.rb', line 27 def build(*args) super add_class default_class_name end |
#column(*args, &block) ⇒ Object
32 33 34 |
# File 'lib/active_admin/views/components/columns.rb', line 32 def column(*args, &block) insert_tag Arbre::HTML::Div, *args, &block end |