如何在 Zimbra 中动态更改工具栏
更改 Zimbra 工具栏的最佳方法是什么? Zimbra 确实为每个视图都有一个工具栏,我们需要通过添加或删除按钮来更改它。
我认为 Zimlet 应该提供此功能,但 Zimlet 是在最后加载的,因此用户会首先看到初始按钮。 然后它们就会消失并被取代。 这其实不太好...
what is the best way to change the toolbars in Zimbra.
Zimbra does have a Toolbar for every view and we need to change it by either adding or removing buttons.
I think Zimlets are supposed to provide this functionality, but Zimlets are loaded at the end and therefore the user would see the initial buttons first. Then they would disappear and replaced. That's not really good...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,我找到了一种使用 zimlet 来做到这一点的方法。
只需要为工具栏创建自己的皮肤模板,并使用 Zimlet 中的 onShowView 和initializeToolbar 方法来实现按钮即可。
Well I found a way to do this with zimlets.
One just needs to create his own skin template for the toolbar and use the onShowView and initializeToolbar methods in his Zimlet to implement his buttons.
是的,因为 zimbra 会触发用于 zimlet 加载的肥皂,这是在加载 zimbra 默认组件后调用的。
所以你不能先删除初始按钮。 如果你想更换这些按钮,那么你必须等待一段时间。
Yes, because the zimbra fire the soap for zimlet loading which is called after the loading of zimbra default componenet.
SO you are not be able to remove initial buttons first. If you want to replace those button then you have to wait for some time..