-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request - Total Count of Data in Pagination #152
Labels
Comments
The only place this could be put is in the meta object |
One way to do it is shown in the project at https://github.com/jeffbrown/issue152. import demo.Widget
import grails.gorm.PagedResultList
model {
PagedResultList<Widget> widgetList
}
json {
total widgetList.totalCount
data tmpl.widget(widgetList)
} (note that
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm working with Grails JSON Views and discovered that it's not configurable in a few ways.
I can make another API call to specifically know the count of my rows of data. But if this can be enabled and be shown in the json output would be better.
The text was updated successfully, but these errors were encountered: