如何在Sencha Touch中制作一个简单的呼叫按钮
我的按钮声明为:
var callButton = {
xtype: "button",
text: 'Call College',
ui: 'custom-btn-confirm',
maxWidth: '360px',
padding: '0 80 0 80',
centered: true,
flex: 1,
scope: this,
style: 'color: #ffffff',
handler: function() {
console.log("Make a Phone Call");
//document.location.href = "tel:00112233"; // This does not work
}
相关
Fire 'tel' link from button in Sencha Touch
How can make a device phone call by android using phoneGap and Sencha Touch 2?
http://rickluna.com/wp/2012/02/making-a-phone-call-from-within-phonegap-in-android-and-ios/
答案 0 :(得分:1)
您可以按
替换按钮{html : "<a href='tel:{phone}' class='x-button call-button' target='_blank'>Call College</a>"}