在剑道装载指示器上显示自定义文本

Display custom text on Kendo Loading Indicator

本文关键字:显示 自定义 文本 指示器      更新时间:2023-09-26

是否可以在Kendo Loading Indicator上使用自定义文本?Kendo UI文档页面上没有此类信息,但是否可以实现自定义属性或css,以便在Kendo Loading Indicator上显示消息,即"Please wait!.."?我使用以下行来显示和隐藏加载动画?

/* Show Kendo Loading Indicator */
kendo.ui.progress($("#kendo-loading"), true);
/* Hide Kendo Loading Indicator */
kendo.ui.progress($("#kendo-loading"), false);

提前感谢。。。

API文档页面上有一个名为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>