在Kendo Loading Indicator上显示自定义文本

时间:2015-12-28 09:36:04

标签: javascript css asp.net-mvc kendo-ui kendo-asp.net-mvc

是否可以在Kendo Loading Indicator上使用自定义文字?在Kendo UI documentation pages上没有这样的信息,但可能有可能实现自定义属性或css以显示消息,即"请稍候!..& Kendo Loading Indicator上的#34; ?我使用以下行来显示和隐藏加载动画?

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

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

提前致谢...

1 个答案:

答案 0 :(得分:1)

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>
相关问题