如何更改剑道警报标题? [英] How do I change the Kendo alert title?
本文介绍了如何更改剑道警报标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用剑道警报,并且想要更改其标题.默认标题是url名称,请参见下面的链接(图像).我想使用自己的标题,该如何更改?
I'm using a Kendo alert and want to change the title of it. The default title is the url name, see link(image) below. I want to use my own title, how do I change this?
剑道警报:
kendo.alert("mytext");
推荐答案
我找到了更改标题的解决方案,我做了以下事情:
I found a solution to change the title, I did the following:
myalert("mytext");
function myalert(content) {
$("<div></div>").kendoAlert({
title: "mytitle!",
content: content
}).data("kendoAlert").open();
}
结果: 图像剑道警报自定义标题
我希望这个答案可以帮助很多有相同问题的人.
I hope this answer helps a lot of people with the same problem.
这篇关于如何更改剑道警报标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文