`

App Framework框架之绑定事件(1)

阅读更多

App Framework是intel公司开发的一个web app框架

官网:http://app-framework-software.intel.com/af22

有如下事件:

tap                  Tap on the element

singleTap            Single tap on the elem (250ms delay after tap is triggered)

doubleTap            Double tap (quick) on the element

longTap              Long press on the element

swipe                The element was swiped (30px threshold)

swipeLeft            The element was swiped left

swipeRight           The element was swiped right

swipeUp              The element was swiped up

swipeDown            The element was swiped down

 

绑定事件

 

$("#element").bind("doubleTap",function(){});

$('#label_toggle_passwd').bind("tap",function(){
    toggleCheckbox(document.getElementById('showpw'));
})

 App Framework UI  基于ZeptoJS*触屏库提供了多种触屏事件  ,以下是你可以注册监听的事件列表

 

tap //类似于普通的 click

singleTap //点一次

doubleTap //连续点两次

longTap //长按

swipe //滑屏

swipeLeft //左滑屏

swipeRight //右滑屏

swipeUp //上滑屏

swipeDown //下滑屏

The swipe event is always triggered with the direction of the swipe. The tap event is always triggered when singleTap, doubleTap or longTap are dispatched.

 

Events

Below are the following events triggered in App Framework UI. 

1
$.ui.load - This event is fired once when
App Framework UI is loaded and ready to go.

These events are only triggered on the window object

1
2
3
hashchange - This event is fired when the a panel has been changed.
orientationchange - This event is fired when the page rotates.
afui:init - This event fires when then $.ui object has been initialized

These events are triggered on the document.

1
2
afui:ready - App Framework UI has launched and ready to be used
missingpanel - This event is fired when the panel was not found in the DOM

These events are triggered on a DOM node. They will bubble up.

1
2
3
4
5
6
7
unloadpanel  - This event is fired when a panel has been unloaded.
loadpanel  - This event is fired when a panel has been loaded.
tap  - This event is fired when tap event happened on a node.  It is similar to a click event.
doubleTap  - This event is firedd when a DOM node is double tapped.
singleTap  - This event is fired when a node is single tapped.  There is a delayed trigger for this event.
longTap  - This event is fired when a user holds down a tapped a node for over 750 milliseconds.
swipe - This event is fired when a user swipes a DOM node.

These events are triggered by a scroller object. These events are handled using $.trigger and $.bind. These events will not bubble.

1
2
3
4
5
6
7
8
9
10
11
12
refresh-release  - This event is fired when a scroller object pull to refresh has been released.
refresh-cancel - This event is fired when a refresh has been triggered, but a user scrolls then we cancel it.
refresh-trigger - This event is fired when a refresh request has happened on the scroller.
refresh-finish - This event is fired when a refresh has been processed and finished.
 
infinite-scroll - This event is fired  when a scroller has hit the end of the content and is requesting more info.
infinite-scroll-end - This event is fired when a scroller has stopped scrolling after triggering an infinit-scroll event.
 
scrollstart - This event is fired when a scroller object starts scrolling.
scrollend - This event is fired when a scroller stops scrolling.
 
swipeLeft/swipeRight/swipeDown/swipeUp - These events are fired in response to a swipe event.  They indicate the direction of the swipe.
分享到:
评论

相关推荐

    play framework 框架手册 word 版

    框架id(framework ID) - 141 - 从命令行设置框架id - 142 - 22.生产部署 - 142 - application.conf - 142 - 设置框架为prod模式: - 142 - 定义一个真实的数据库: - 143 - 禁止JPA的自动结构更新: - 143 - 定义一...

    机智云公版开源App-智能插座Android版

    com.gizwits.framework -机智云设备开源APP框架,包含除控制界面Activity外的代码,暂时机智云实验室中的其他开源APP所用框架一致 com.gizwits.framework.activity -机智云设备开源APP框架相关...

    一步一步学习Revel Web开源框架

    Framework 而来, 我个人认为Revel是目前Go语言中比较不错的一个Web开发框架, 虽然它还有很多待完善的地方但还是很值得学习和借鉴滴, 我在这里记录一下偶的对它滴研究过程,以作备忘,也希望能和喜欢它的朋友们一起...

    .net开源的综合开发框架wojilu框架.zip

    1. “我记录”开发框架(wojilu framework)“我记录”开发框架(wojilu framework) 是 .net 平台下的综合开发框架,主要用于 web 方面的快速开发。如果您对本框架感兴趣,欢迎参加开发团队,本团队常年招贤纳士,期待...

    ionic-app-scripts:适用于Ionic项目的App Build脚本

    Ionic App Scripts是专门与Ionic Framework的3.x版本绑定的工具。 自从Ionic Framework 4.0版发布以来,我们不再使用Ionic App脚本在Ionic Framework中进行构建。 我们不再积极维护Ionic Framework的第3版。 有关...

    play框架手册

    框架id(framework ID) - 141 - 从命令行设置框架id - 142 - 22.生产部署 - 142 - application.conf - 142 - 设置框架为prod模式: - 142 - 定义一个真实的数据库: - 143 - 禁止JPA的自动结构更新: - 143 - 定义一...

    Flash+Flex+Air移动开发入门经典 pdf

    1.3 flex框架 11 1.3.1 flex 4.5.1 11 1.3.2 mxml 12 1.3.3 spark库组件 14 1.3.4 数据绑定 21 1.3.5 flex移动应用程序结构 22 1.3.6 移动开发的考虑事项 31 1.4 adobe air 31 1.5 小结 32 1.5.1 练习 32 ...

    ssh(structs,spring,hibernate)框架中的上传下载

    SSH各框架的均为当前最新版本:  •Struts 1.2  •Spring 1.2.5  •Hibernate 3.0  本文选用的数据库为Oracle 9i,当然你可以在不改动代码的情况下,通过配置文件的调整将其移植到任何具有Blob字段类型的数据库...

    asp.net core6 MVC+SqlServer例子

    asp.net core6 MVC APP例子,使用SqlServer数据库,VS2022创建,网上的例子和教程都是.net core5以前的,这个是全新创建没有Startup文件的。

    YAMini:另一个迷你PHP框架

    使用 Composer 进行包管理,和 app 命名空间管理,详细见composer.json \YAMini\core是主流程,主要部分 trait loader,uri,coreException 全局函数get_instance()获取当前控制器单例(如果是直接跑的路由callback那...

    ASP.NET 控件的使用

    第1章 ASP.NET Framework概览 2 1.1 ASP.NET和.NET Framework 5 1.1.1 框架类库 5 1.1.2 公共语言运行库 9 1.2 ASP.NET控件 10 1.2.1 ASP.NET控件概览 11 1.2.2 HTML控件 12 1.2.3 理解和处理控件事件 12 1.2.4 ...

    ASP.NET.4揭秘

    第1章 asp.net framework概览2 1.1 asp.net和.net framework5 1.1.1 框架类库5 1.1.2 公共语言运行库10 1.2 asp.net控件11 1.2.1 asp.net控件概览11 1.2.2 html控件12 1.2.3 理解和处理控件事件13 1.2.4 视图状态18 ...

    ionic-stencil-hn-app:离子型模板HackerNews应用

    Stencil利用TypeScript,JSX,微小的虚拟DOM层,高效的单向数据绑定,异步渲染管道(类似于React Fiber)和开箱即用的延迟加载功能,并生成100%基于标准运行的Web组件在任何支持Custom Elements v1规范的浏览器中...

    ASP.NET的网页代码模型及生命周期

    在服务器中,ASP.NET框架解释信息,并触发事件与之对应的处理程序。该程序可以是.aspx页面中的处理程序,也可以是开发者自定义的类库,或者COM组件等。事件驱动处理如图4-7所示。 图4-7 页面框架的事件驱动处理...

    ASP.NET4高级程序设计第4版 带目录PDF 分卷压缩包 part1

    1.1.1 要点1:ASP.NET是同.NETFramework集成在一起的 1.1.2 要点2:ASP.NET是编译执行的,而不是解释执行的 1.1.3 要点3:ASP.NET支持多语言 1.1.4 要点4:ASP.NET运行在公共语言运行库内 1.1.5 要点5:...

    consoleframework:跨平台工具包,用于轻松开发TUI应用程序

    数据绑定(与XAML标记集成) 保留模式渲染系统 与WPF兼容的简单灵活的布局系统 许多可用的控件(包括Grid,ScrollViewer,ListBox,ComboBox) 路由事件系统(与WPF兼容) Windows,Mac OS X和Linux(64位)支持...

    asp.net知识库

    在ASP.NET页面中推荐使用覆写(Override)而不是事件处理(Event Handler) 常用编码工具类,支持base64,md5,des,crc32 也谈谈技术面试 在C#里把ArrayList转换为Array 或 把Array转换为ArrayList C# 2.0 在.NET 2.0中...

    pointjs:用于构建用户界面的轻量级客户端框架

    点.js用于构建用户界面的轻量级客户端框架Point是一个轻量级的客户端框架,用于为 Web 构建 UI。 它的重点是视图层,与许多其他框架不同,它使用纯 HTML,因此不需要您学习新语法——这使得它非常容易在您的项目中...

Global site tag (gtag.js) - Google Analytics