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

2016-04-27 Thread Timur Sufiev
Yes, you can maintain a downstream fork if you wish.
On Thu, 28 Apr 2016 at 05:34, 严超  wrote:

> Can we hard code only one table to 5 rows limit default ? And leave other
> tables not touched.
> Thank you very much !
>
> 严超 于2016年4月28日周四 上午6:58写道:
>
>> Oh, sorry, I mean, can we hard code only one table to 5 rows default ?
>> And leave others not touched.
>> Thank you very much !
>>
>> *Best Regards!*
>>
>>
>> *Chao Yan--About me : http://about.me/chao_yan
>> *
>>
>> *My twitter: @yanchao727 *
>> *My Weibo: http://weibo.com/herewearenow *
>> *--*
>>
>> 2016-04-28 1:51 GMT+08:00 Timur Sufiev :
>>
>>> 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
>>> (->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 严超  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
 *

 *My twitter: @yanchao727 *
 *My Weibo: http://weibo.com/herewearenow
 **--*

 __
 OpenStack Development Mailing List (not for usage questions)
 Unsubscribe:
 openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

>>>
>>>
>>> __
>>> OpenStack Development Mailing List (not for usage questions)
>>> Unsubscribe:
>>> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>
>>>
>> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2016-04-27 Thread 严超
Can we hard code only one table to 5 rows limit default ? And leave other
tables not touched.
Thank you very much !

严超 于2016年4月28日周四 上午6:58写道:

> Oh, sorry, I mean, can we hard code only one table to 5 rows default ? And
> leave others not touched.
> Thank you very much !
>
> *Best Regards!*
>
>
> *Chao Yan--About me : http://about.me/chao_yan
> *
>
> *My twitter: @yanchao727 *
> *My Weibo: http://weibo.com/herewearenow *
> *--*
>
> 2016-04-28 1:51 GMT+08:00 Timur Sufiev :
>
>> 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
>> (->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 严超  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
>>> *
>>>
>>> *My twitter: @yanchao727 *
>>> *My Weibo: http://weibo.com/herewearenow *
>>> *--*
>>>
>>> __
>>> OpenStack Development Mailing List (not for usage questions)
>>> Unsubscribe:
>>> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>
>>
>> __
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe:
>> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2016-04-27 Thread 严超
Oh, sorry, I mean, can we hard code only one table to 5 rows default ? And
leave others not touched.
Thank you very much !

*Best Regards!*


*Chao Yan--About me : http://about.me/chao_yan
*

*My twitter: @yanchao727 *
*My Weibo: http://weibo.com/herewearenow *
*--*

2016-04-28 1:51 GMT+08:00 Timur Sufiev :

> 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
> (->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 严超  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
>> *
>>
>> *My twitter: @yanchao727 *
>> *My Weibo: http://weibo.com/herewearenow *
>> *--*
>> __
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe:
>> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2016-04-27 Thread Timur Sufiev
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
(->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 严超  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
> *
>
> *My twitter: @yanchao727 *
> *My Weibo: http://weibo.com/herewearenow *
> *--*
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2016-04-27 Thread 严超
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
*

*My twitter: @yanchao727 *
*My Weibo: http://weibo.com/herewearenow *
*--*
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev