Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Latest commit

 

History

History
34 lines (27 loc) · 842 Bytes

README.md

File metadata and controls

34 lines (27 loc) · 842 Bytes

Marionette.Modal Build Status

Supported browsers

Example

Minimal required markup

<div id="mn-modal" class="mn-modal"></div>

Code sample

define(['backbone.marionette', 'marionette.modal'], function (Marionette, Modal) {
    // this is view will rendered inside modal dialog
    var ChildView = Marionette.ItemView.extend({
        template: '#awsum-template',

        onSubmit: function () {
            // do submit stuff ...
        },

        onReject: function () {
            // do reject stuff ...
        }
    });

    // Wow, modal!
    Modal.add({ View: ChildView });
});