在 Kendo 加载指示器上显示自定义文本
Display custom text on Kendo Loading Indicator
是否可以在 Kendo Loading Indicator
上使用自定义文本? Kendo UI documentation pages 上没有此类信息,但可以实现自定义 属性 或 css
以显示消息,即 "Please wait!.." 在 Kendo Loading Indicator
上?我使用以下几行来显示和隐藏加载动画?
/* Show Kendo Loading Indicator */
kendo.ui.progress($("#kendo-loading"), true);
/* Hide Kendo Loading Indicator */
kendo.ui.progress($("#kendo-loading"), false);
提前致谢...
API 文档页面 here 上有一个名为 customize loading animation text
的示例。
<style>
/* By default the text is hidden, re-position the text */
span.k-loading-text
{
text-indent: 0;
top: 50%;
left: 50%;
background-color: #0F0;
}
div.k-loading-image
{
display: none;
}
</style>
<script>
$(function(){
//customize the default "Loading..." text
kendo.ui.progress.messages = {
loading: "Processing..."
};
});
</script>
是否可以在 Kendo Loading Indicator
上使用自定义文本? Kendo UI documentation pages 上没有此类信息,但可以实现自定义 属性 或 css
以显示消息,即 "Please wait!.." 在 Kendo Loading Indicator
上?我使用以下几行来显示和隐藏加载动画?
/* Show Kendo Loading Indicator */
kendo.ui.progress($("#kendo-loading"), true);
/* Hide Kendo Loading Indicator */
kendo.ui.progress($("#kendo-loading"), false);
提前致谢...
API 文档页面 here 上有一个名为 customize loading animation text
的示例。
<style>
/* By default the text is hidden, re-position the text */
span.k-loading-text
{
text-indent: 0;
top: 50%;
left: 50%;
background-color: #0F0;
}
div.k-loading-image
{
display: none;
}
</style>
<script>
$(function(){
//customize the default "Loading..." text
kendo.ui.progress.messages = {
loading: "Processing..."
};
});
</script>