[API] Show dialog from toolbar

This commit is contained in:
Victor Woeltjen
2016-06-17 13:51:15 -07:00
parent e4a4704baa
commit b6a8c514aa
4 changed files with 47 additions and 3 deletions

View File

@ -114,7 +114,16 @@ define([
$(container).append($els);
$add.on('click', window.alert.bind(window, "Add!"));
$add.on('click', function () {
mct.dialog({
show: function (container) {
$(container).append($('<span>Dialog!</span>'));
},
destroy: function () {
}
});
});
$remove.on('click', window.alert.bind(window, "Remove!"));
};