sencha touch 2.4 api好不好用

1011人阅读
Sencha Touch panel 以及 container事件中并没有点击事件,但有时我们需要给一个面板添加点击事件该如何实现呢,话不多说具体实现代码如下。
Ext.getCmp('panel_id').element.on({
tap : function() {
alert(&你点击了panel&);
touchstart:function(){
console.log(&touch start......&);
touchend:function(){
console.log(&touch end......&);
我的SenchaTouch版本为 2.4.0
['touchstart', 'touchend', 'touchmove',&'swipe', 'dragstart', 'drag', 'dragend',&'tap', 'singletap', 'doubletap', 'longpress', 'pinch', 'rotate'] 其他的我没试,应改也都可以。
版权声明:本文为博主原创文章,未经博主允许不得转载。
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:257915次
积分:3657
积分:3657
排名:第4616名
原创:129篇
评论:40条
(1)(2)(2)(2)(2)(4)(4)(10)(3)(1)(5)(1)(1)(2)(1)(2)(3)(1)(26)(7)(5)(13)(3)(1)(14)(15)Copyright &
All Rights ReservedSencha Touch 2.4.0 发布,增强对黑莓的支持
Sencha Touch 2.4.0 发布,该版本增强了对黑莓 10 浏览器和设备的支持,你可通过这里
在黑莓设备上密码输入框增加了一个眼睛的图标,指示触摸进入时。此外列表组件的 IndexBar 样式进行重新设计。Sliderfield 的样式也重新设计:
& & Password field
& & Re-styled IndexBar
& & Updated Sliderfield
同时我们更新了列表原色的高亮:
& & onPress
& & onRelease
Sencha Touch 2.4 还引入新的 Toast 组件用于显示一些小的提醒信息,并可根据预设时间自动消失。
此外,Sencha Touch 2.4 扩展了 BlackBerry 10 主题支持到 Q10 和 Q5 设备。触摸框架可检测屏幕的分辨率并自动进行大小调整。
除了对黑莓的支持增强外,还包括很多 bug 修复,详细列表请看 .
文章转载自:开源中国社区 []
本文标题:Sencha Touch 2.4.0 发布,增强对黑莓的支持
本文地址:
好文,顶一下
文章真差,踩一下
------分隔线----------------------------
把开源带在你的身边-精美linux小纪念品
初级应用->
高级应用-> |
编程开发->Touch 2.2.1 - Sencha Docs
Touch 2.2.1 - Sencha Docs
Sencha Touch is all about device support, performance, ease of use, and great docs. Here's a guide to all that's new.
Dive right in and explore our useful documentation.
DOM & Browser
Containers & Panels
Animations and Effects
Components
Components
Component Utilities
Components
Interactions
Data Models
Data Readers & Writers
Data Proxies
Data Stores
Native Classes
Native Extensions
Device APIs
Ext.data.proxy.Ajax
Ext.dataview.List

我要回帖

更多关于 sencha touch 2.4 api 的文章

 

随机推荐