1

I wonder if there is a way to hide the loading message after loading a picture with the "kendo-ui-uploader". Strangely, with the previous version, this "big message" did not appear; however, with this new version, I really see no reason to change the previous loading message as it was smaller and better, this huge message appears. In addition, its styles cannot be changed manually because the view is ruined

This is how it look like before uploading

This is how it look like before uploading

This is how it look like after uploading

enter image description here

I hope someone knows something about it.Thanks

4

3 回答 3

1

要隐藏“完成”消息,您可以尝试指定空白字符串

<input type="file" name="files" id="photos" />
<script>
$("#photos").kendoUpload({

    localization: {
        statusUploaded: ""
    }
});

查看上传控件文档的文档说您可以指定自己的模板,您可以拥有自定义消息。

您可以使用以下代码自定义消息

<input type="file" name="files" id="photos" />
<script>
$("#photos").kendoUpload({

    localization: {
        statusUploading: "Loading Your Language"
    }
});

或者您可以定义自定义模板,看起来自定义模板提供的功能还不够;或者,您可以尝试使用 jQuery 选择器来隐藏消息。

于 2013-09-12T01:06:39.943 回答
1

//在加载剑道控制时放置它(在javascript中)它隐藏完成消息

        var upload = $("#files").data("kendoUpload");

       $.extend(upload.options.localization, {
            headerStatusUploading: "",
            headerStatusUploaded: ""
        });

//在上传回调隐藏评论图标

$(".k-icon.k-warning").hide();

于 2014-02-12T07:35:11.243 回答
-1

这个答案不起作用我很抱歉......

不工作:

<input type="file" name="files" id="photos" />
<script>
$("#photos").kendoUpload({

    localization: {
        statusUploading: "Loading Your Language"
    }
});

但是,如果您查看文档,看起来答案几乎是正确的,只是属性错误。它应该是...

有效:

<input type="file" name="files" id="photos" />
<script>
$("#photos").kendoUpload({

    localization: {
        headerStatusUploaded: "Loading Your Language"
    }
});

这使得您看不到“完成”文本。但是请记住,这不会删除复选标记。希望这可以帮助某人。

于 2018-03-27T17:16:51.303 回答