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

Dialog library based on Marionette framework

License

Notifications You must be signed in to change notification settings

Raidix/Marionette.Modal

Repository files navigation

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 });
});

About

Dialog library based on Marionette framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published