cf-form-cancel-delegate

3.0.1 • Public • Published

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

/cf-form-cancel-delegate/

    Package Sidebar

    Install

    npm i cf-form-cancel-delegate

    Weekly Downloads

    73

    Version

    3.0.1

    License

    BSD*

    Unpacked Size

    224 kB

    Total Files

    9

    Last publish

    Collaborators

    • bengourley
    • serby