开发者

gwt Menubar issues

开发者 https://www.devze.com 2023-02-19 17:21 出处:网络
What I would like to have is a menu-/navigationbar where I can position mos开发者_运维问答t of the elements left and 2 elements on the right. Is it possible to to using a Menubar? You can use a DockLa

What I would like to have is a menu-/navigationbar where I can position mos开发者_运维问答t of the elements left and 2 elements on the right. Is it possible to to using a Menubar?


You can use a DockLayoutPanel, with each section containing a MenuBar, such as:

<g:DockLayoutPanel unit="PX">
  <g:west size="123">
    <g:MenuBar>
      <g:MenuItem>Item 1</g:MenuItem>
      <g:MenuItem>Item 2</g:MenuItem>
      <g:MenuItem>Item 3</g:MenuItem>
      ...
    </g:MenuBar>
  </g:west>
  <g:east size="123">
    <g:MenuBar>
      <g:MenuItem>Item (n-1)</g:MenuItem>
      <g:MenuItem>Item n</g:MenuItem>
    </g:MenuBar>
  </g:east>
  <g:center>
    (You can add anything in between here, including another MenuBar, if desired)
  </g:center>
</g:DockLayoutPanel>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号