/
Writing Touch-Events for New Icon in Aptify Mobile for Members
Writing Touch-Events for New Icon in Aptify Mobile for Members
This topic describes how to write touch-events for a new icon in the Aptify Mobile for Members user interface.
Under scripts/aptify.touchevents.js
- Create a new variable for caching the target '.mynewicon' class, e.g., var mynewicon = $('.mynewicon);
Add following code to create the touch events for touchStart, touchEnd and touchCancel.
$( mynewicon).live("touchstart", function () { $(this).addClass("home-icon-active-fake"); }) $( mynewicon).live("touchend", function () { $(this).removeClass("home-icon-active-fake"); }) $( mynewicon).live("touchcancel", function () { $(this).removeClass("home-icon-active-fake"); })
Note
Whenever a new button is added which has click and touch effect, add a touch event to make it work on a mobile device.
, multiple selections available,
Related content
Modifying the Theme of the Button Active State in Aptify Mobile for Members
Modifying the Theme of the Button Active State in Aptify Mobile for Members
More like this
Adding a New Tab to the Navigation Bar in Aptify Mobile for Members
Adding a New Tab to the Navigation Bar in Aptify Mobile for Members
More like this
Configuring Existing Modules
Configuring Existing Modules
More like this
Adding an HTML page in Aptify Mobile for Members
Adding an HTML page in Aptify Mobile for Members
More like this
Using ThemeRoller for Changing Themes in Aptify Mobile for Members
Using ThemeRoller for Changing Themes in Aptify Mobile for Members
More like this
Developing and Configuring Aptify Mobile for Members
Developing and Configuring Aptify Mobile for Members
More like this
Copyright © 2014-2017 Aptify - Confidential and Proprietary