[openstack-dev] [horizon] How to paginate Data Table to display only 5 rows every page ?

Timur Sufiev tsufiev at mirantis.com
Wed Apr 27 17:51:42 UTC 2016


Definitely, yes

See how it's done for Images:
https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/images/views.py#L35

Also, limit of items per table page is set in User Settings
(<Username>->Settings at top right corner of the dashboard), it's not
hard-coded. Once you set it, all tables which support pagination (see the
pattern above) display the specified number of items per page.

On Wed, Apr 27, 2016 at 1:00 PM 严超 <yanchao727 at gmail.com> wrote:

> Hi, Everyone:
>     Is there a possible way to paginate DataTable to display only 5 rows
> every page ?
>     I'm very grateful for reply.
>
> *Best Regards!*
>
>
> *Chao Yan--------------About me : http://about.me/chao_yan
> <http://about.me/chao_yan>*
>
> *My twitter: @yanchao727 <https://twitter.com/yanchao727>*
> *My Weibo: http://weibo.com/herewearenow <http://weibo.com/herewearenow>*
> *--------------*
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160427/21809276/attachment.html>


More information about the OpenStack-dev mailing list