mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 14:32:22 +00:00
20 lines
480 B
JavaScript
20 lines
480 B
JavaScript
define(function () {
|
|
return function todoPlugin(mct) {
|
|
var todoType = new mct.Type({
|
|
metadata: {
|
|
label: "To-Do List",
|
|
glyph: "2",
|
|
description: "A list of things that need to be done."
|
|
},
|
|
initialize: function (model) {
|
|
model.tasks = [];
|
|
},
|
|
creatable: true
|
|
});
|
|
|
|
mct.type('example.todo', todoType);
|
|
|
|
return mct;
|
|
};
|
|
});
|