190 likes | 377 Views
New ZEN Components for Mobile Interfaces. Stefan Wittmann Zen Product Specialist. Agenda. Option 1 – Zen Mobile / Zen Desktop Option 2 - % ZEN.Mobile.mobilePage New Components Demonstration. The environment. Native App. Native App. Browser. Native Code. HTML Code. HTML Code.
E N D
New ZEN Components for Mobile Interfaces Stefan Wittmann Zen Product Specialist
Agenda • Option 1 – Zen Mobile / Zen Desktop • Option 2 - %ZEN.Mobile.mobilePage • New Components • Demonstration
The environment Native App Native App Browser Native Code HTML Code HTML Code Device API Device API Device API Native Hybrid Web
Zen Mobile / Zen Desktop • Set ofclassesthat form a templatefor mobile appsbuiltwith ZEN • Applicationclass • Page class • Templates
Zen Mobile / Zen Desktop • Client Side • Communication : JSON • Data Channel : Request / Submit • Two Rendering Modules • Plugin 3rd Party Libraries
Additional Base Class • %ZEN.Mobile.mobilePage • Extends %ZEN.Component.page • HTML5 based • Provideseventhandlersfortouchanddevicemotionevents • Can beoverwritten in a ‚mobile‘ pagetoimplement a specificbehavior
New Components • Navigator • Canvas • Scribble Area • MapView
Navigator • Providesnavigationand simple settingsinterface • Look-and-Feelsimiliartothatfound on mobile devices
Navigator • HTML5 • JSON objectasdatasource • Callback must beimplementedtocreatethe JSON object • Stackof ‚Pages‘ • Ifdrilled down onelevel, a newpageisplaced on top ofthestack
Navigator • Supports thefollowinglistofedit-controls • 'string' --display a simply text entry box • 'slider' -- display a slider control • 'slider-toggle' -- display a slider control with a checkbox • 'stepper' -- display a up/down stepper control • 'stepper-value' -- display a stepper with a value • 'switch' -- display an on/off switch • 'choice' -- display a small set of choices as buttons
Navigator • Different typesofpossibleactions • select – firesthe ‘onselect‘ Callback • link – navigatesto a new URL • drill – drills down onelevel • apply – firesthe ‘onchange‘ Callback Edit options Action
Canvas • Wrapper forthe HTML5 canvaselement • Draw graphicsortext on thefly in a ZEN Page • The canvasisthecontainer • Draw thegraphicswith JavaScript Code todrawthegraphics
Scribble Area • Capturespengestures such assignatures etc. • Scribbles canbesavedandrestoredfromthedatabase • Supports dataControllers
MapView Youcanset a marker
New ZEN Components for Mobile Interfaces Stefan Wittmann Zen Product Specialist