O'Reilly logo

KnockoutJS by Example by Adnan Jaswal

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

Cancel updating the personal information

We gave our users the ability to edit their personal information in the previous user story. Once the users start editing, they do not have a way to cancel if they don't want to go ahead with the changes. In this user story, we will give our users the ability to cancel editing the personal information form. The requirement of the user story is to provide a button, with a label Cancel, in the edit mode. Clicking the Cancel button should revert any changes made to the form fields and take the form out of the edit mode. The user would also like to be informed that the edit was cancelled and any change to personal information was not saved.

Let's start by adding the Cancel button to the view. Add a button under ...

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