O'Reilly logo

PhoneGap 3.x Mobile Application Development HOTSHOT by Kerri Shotts

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing the text note edit view

We need to implement our last view, the text note edit view. It should be defined in /www/js/app/views/textNoteEditView.js. The associated template should be defined in /www/html/textNoteEditView.html.

Getting on with it

First, we define the template (in /www/html/textNoteEditView.html):

<html> <body> <div class="ui-navigation-bar"> <div class="ui-title" contenteditable="true">%NOTE_NAME%</div> <div class="ui-bar-button-group ui-align-left"> <div class="ui-bar-button ui-tint-color ui-back-button">%BACK%</div> </div> <div class="ui-bar-button-group ui-align-right"> <div class="ui-bar-button ui-destructive-color">%DELETE_NOTE%</div> </div> </div> <div class="ui-scroll-container ui-avoid-navigation-bar"> <textarea ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required