mirror of
https://github.com/nasa/openmct.git
synced 2025-06-15 21:58:13 +00:00
[API] Show dialog from toolbar
This commit is contained in:
@ -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!"));
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user