简体   繁体   English

使用javascript的Kendo UI Mobile加载按钮

[英]Kendo UI Mobile loading button with javascript

I have a function that loads a button with javascript, but I don't know how to trigger it to look like a button. 我有一个函数,用JavaScript加载一个按钮,但我不知道如何触发它看起来像一个按钮。

My code looks like the following: 我的代码如下所示:

$("#loadDiv").html("<a data-click='Event' type='button' data-role='button'>My Button</a>");

It will then only show the link "My Button". 然后它只会显示“我的按钮”链接。 How do I then trigger it to change it into a button? 然后如何触发它将其更改为按钮?

In Jquery mobile I did the following: 在Jquery mobile中我做了以下事情:

$("#loadDiv").trigger('create');

Anyone know how to do this is kendo ui mobile? 任何人都知道如何做到这一点是kendo ui mobile?

您可以查看Kendo文档中的数据属性初始化文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM