是否可以在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);
提前致谢...
答案 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>