You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with Grails JSON Views and discovered that it's not configurable in a few ways.
Count of the total rows of data cannot be enabled in jsonapi.render(). If I don't know the total count of the data, how can I construct my pagination view in pure html format such as this:
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.
{
data: [],
links: {},
total: '40'
}
The text was updated successfully, but these errors were encountered:
kevintanhongann
changed the title
non-HAL Pagination needs to be improved
Feature Request - Count of Data in Pagination
Dec 12, 2017
kevintanhongann
changed the title
Feature Request - Count of Data in Pagination
Feature Request - Total Count of Data in Pagination
Dec 12, 2017
importdemo.Widgetimportgrails.gorm.PagedResultList
model {
PagedResultList<Widget> widgetList
}
json {
total widgetList.totalCount
data tmpl.widget(widgetList)
}
(note that total increases from 100 to 101 after the POST)
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: