更改选项卡时正在加载屏幕

更改选项卡时正在加载屏幕

本文介绍了XPages:更改选项卡时正在加载屏幕(TabPanel)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的XPage上有一个TabPanel.当我从一个标签页移动到另一个标签页时,正在加载的数据很少,这需要一些时间.

I have a TabPanel on my XPage. When i move from one Tab to another, few data is loading and this takes some time.

在更改标签页时是否可以显示加载屏幕?

Is it possible to show a loading screen, while changing Tabs?

感谢您的帮助

致谢

推荐答案

您应该看一下xe:djTabContainerxe:djTabPane.这就是Dojo选项卡容器的XPages扩展库版本.它支持一次加载所有选项卡中的内容,也可以使用部分刷新以及添加加载消息的选项.

You should take a look at xe:djTabContainer and xe:djTabPane. That's the XPages extension library versions of the Dojo tab container. It provides support for loading content in all tabs at once or using partial refresh with the option to add a loading message.

更新

Paul Withers对loadingMessage属性进行了评论.它确实适用于所有内容.这是一个简单的示例:

Paul Withers commented on the loadingMessage property. It does work with all content. Here's a simple example:

<xe:djTabContainer id="djTabContainer1" doLayout="false">
    <xe:djTabPane id="djTabPane1" title="Tab 1" partialRefresh="true" refreshOnShow="true" partialEvents="true" loadingMessage="LOADING LOADING LOADING">Tab 1</xe:djTabPane>
    <xe:djTabPane id="djTabPane2" title="Tab 2" partialRefresh="true" refreshOnShow="true" partialEvents="true" loadingMessage="LOADING MORE LOADING MORE">Tab 2</xe:djTabPane>
</xe:djTabContainer>

切换标签时,您可以非常简短地看到加载消息.

When you switch tabs, you can very briefly see the loading message.

这篇关于XPages:更改选项卡时正在加载屏幕(TabPanel)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 22:08