3.0.1 • Published 5 years ago

cf-form-cancel-delegate v3.0.1

Weekly downloads
100
License
BSD*
Repository
github
Last release
5 years ago

cf-form-cancel-delegate

Show a confirmation dialog if model changes will be lost when navigating from a form

Installation

npm install --save cf-form-cancel-delegate

Usage

On a Backbone view that has an initialModel property:

var formCancelDelegate = require('cf-form-cancel-delegate')(logger)
formCancelDelegate.call(view) // Needs to be executed in the context of the view

Example:

Example

Credits

Built by developers at Clock.

Licence

Licensed under the New BSD License