-
Notifications
You must be signed in to change notification settings - Fork 2.3k
List
bbenezech edited this page Dec 26, 2011
·
28 revisions
Section used for the index view.
It inherits its configuration from the base section.
Number of items per page
You can configure the default number of rows rendered per page:
RailsAdmin.config do |config|
config.default_items_per_page = 50
endNumber of items per page per model
You can also configure it per model:
RailsAdmin.config do |config|
config.model Team do
list do
items_per_page 100
end
end
endDefault sorting
By default, rows sorted by the field id in reverse order
You can change default behavior with use two options: sort_by and sort_reverse
RailsAdmin.config do |config|
config.model Player do
list do
sort_by :name
sort_reverse false
end
end
end