XPages中的浮动工具栏/操作栏/按钮栏? [英] Floating toolbar / actionbar / buttonbar in XPages?

查看:247
本文介绍了XPages中的浮动工具栏/操作栏/按钮栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人有类似于Lotus Notes客户端中的操作栏的xXages的浮动工具栏?

Does anyone have a floating toolbar for xXages similar to the action bar in Lotus Notes client?

我希望工具栏保持在浏览器顶部,浏览器是滚动的。

I would like the toolbar to stay at the top of the browser while the browser is scrolled.

扩展页面工具栏看起来很不错,但首先它只有客户端代码,它不显示为浮动。

The extension pages toolbar looks really nice but first it only does client side code and it does not appear to float.

推荐答案

浮动是你可以使用CSS和以下操作:

Float is something you can do using CSS and the following:

position: fixed;
top: 0;

对于XPages扩展库xe:工具栏控件,您需要在自定义中使用覆盖以下样式类样式表:

For the XPages Extension Library xe:toolbar control you need to use override the following style class in your custom style sheet:

.tundra .dijitToolbar {
  position: fixed;
  top: 0;
}

然后你有一个浮动工具栏,用户滚动。

And then you have a floating toolbar that stays at the top of the window when the user scrolls.

xe:toolbar也是服务器端代码,因为它使用TreeNodes和onItemClick事件,你可以添加服务器端代码。

The xe:toolbar does server-side code too since it uses TreeNodes and the onItemClick event where you can add server-side code.

这篇关于XPages中的浮动工具栏/操作栏/按钮栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆