@@ -23,9 +23,8 @@ controller functions.
23
23
end
24
24
end
25
25
26
- ## Common Components
27
26
28
- ### Panel Component
27
+ ## Panels
29
28
30
29
A panel is a component that takes up all available horizontal space and takes a
31
30
title and a hash of attributes as arguments. If a sidebar is present, a panel
@@ -45,7 +44,7 @@ The following code will create two stacked panels:
45
44
46
45
end
47
46
48
- ### Columns Component
47
+ ## Columns
49
48
50
49
The Columns component allows you draw content into scalable columns. All you
51
50
need to do is define the number of columns and the component will take care of
@@ -68,7 +67,7 @@ the #column method to create a new column.
68
67
69
68
end
70
69
71
- #### Multiple Span Columns
70
+ ### Spannig Multiple Columns
72
71
73
72
To create columns that have multiple spans, pass the : span option to the column
74
73
method.
@@ -85,7 +84,7 @@ method.
85
84
By default, each column spans 1 column. The above layout would have 2 columns,
86
85
the first being twice as large as the second.
87
86
88
- #### Max and Mix Column Sizes
87
+ ### Custom Column Widths
89
88
90
89
Active Admin uses a fluid width layout, causing column width to be defined
91
90
using percentages. Due to using this style of layout, columns can shrink or
@@ -104,7 +103,7 @@ columns provide :max_width and :min_width options.
104
103
In the above example, the first column will not grow larger than 200px and will
105
104
not shrink less than 100px.
106
105
107
- ### Table For Component
106
+ ## Table For
108
107
109
108
Table For provides the ability to create tables like those present
110
109
in #index_as_table. table_for takes a collection and a hash of options and then
@@ -121,7 +120,7 @@ the #column method can take a title as its first argument and data
121
120
(: your_method ) as its second (or first if no title provided). Column also
122
121
takes a block.
123
122
124
- ### Status tag
123
+ ## Status tag
125
124
126
125
Status tags provide convenient syntactic sugar for styling items that have
127
126
status. A common example of where the status tag could be useful is for orders
0 commit comments