meteor-admin
meteor-admin copied to clipboard
How to limit number of rows shown on "index" collection page
Hi,
The default records per page on index page is 10. How to set to another value?
Regards Joao
I was wondering the same thing.
is there any way to do this yet ?
Hello, I managed to fix this by pulling a local copy of this package and editing /lib/both/startup.coffee as follows :
AdminTables[name] = new Tabular.Table
name: name
collection: adminCollectionObject(name)
pub: collection.children and adminTablePubName(name)
sub: collection.sub
columns: columns
order: collection.order || []
extraFields: collection.extraFields
dom: adminTablesDom
// add the line below
pageLength: collection.pageLength
Then in your admin config js file add under the collection you want to display
pageLength: 100 // any number you want
Hope that works for you as well