gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

navigatorCloneToTop does not include extra buttons in top navigator bar #936

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Set navigatorExtraButtons="{button1:{title:'TheExtraButton', 
icon:'ui-icon-extlink', onclick:doSomething, position:'last'}}"
2.Set toppager="true"
3.Set navigatorCloneToTop="true"

What is the expected output? 
The extra button should be displayed in top navigator bar.

What do you see instead?
Only the bottom navigator bar contains the extra button.

Which struts2 version?

Which struts2-jquery plugin version?
3.3.3

Please provide any additional information below.

Original issue reported on code.google.com by ycrousse...@gmail.com on 7 Jan 2013 at 1:45

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 13 Jan 2013 at 10:23

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/struts2-jquery/source/detail?r=1780

Original comment by johgep on 13 Jan 2013 at 10:25

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 24 Jan 2013 at 9:30

GoogleCodeExporter commented 9 years ago
Seems like you need absolutely the navigatorExtraButtons attribute since this 
fix.

Workaround add a seperator :
<sjg:grid
  ...
  navigator="true"
  pager="true"
  toppager="true"
  navigatorCloneToTop="true"
  navigatorExtraButtons="{seperator: { title : 'seperator' }}"
  >

Thanks for your great plugin.

Original comment by frankgou...@gmail.com on 2 Jul 2013 at 3:41