docs/12-arbre-components.md in activeadmin-1.3.1 vs docs/12-arbre-components.md in activeadmin-1.4.0
- old
+ new
@@ -113,10 +113,25 @@
```
In the above example, the first column will not grow larger than 200px and will
not shrink less than 100px.
+### Custom Column Class
+
+Pass the `:class` option to the column method to set a custom class.
+
+```ruby
+columns do
+ column class: "important" do
+ span "Column # 1"
+ end
+ column do
+ span "Column # 2"
+ end
+end
+```
+
## Table For
Table For provides the ability to create tables like those present
in `index_as_table`. It takes a collection and a hash of options and then
uses `column` to build the fields to show with the table.
@@ -128,12 +143,24 @@
column "Details & Notes", :payment_details
column "Amount", :amount_in_dollars
end
```
-the `column` method can take a title as its first argument and data
+The `column` method can take a title as its first argument and data
(`:your_method`) as its second (or first if no title provided). Column also
takes a block.
+
+### Internationalization
+
+To customize the internationalization for the component, specify a resource to
+use for translations via the `i18n` named parameter. This is only necessary for
+non-`ActiveRecord::Relation` collections:
+
+```ruby
+table_for payments, i18n: Payment do
+ # ...
+end
+```
## Status tag
Status tags provide convenient syntactic sugar for styling items that have
status. A common example of where the status tag could be useful is for orders