mirror of
https://github.com/nasa/openmct.git
synced 2025-01-11 23:42:41 +00:00
60 lines
1.9 KiB
JavaScript
60 lines
1.9 KiB
JavaScript
define([
|
|
'legacyRegistry',
|
|
'./src/controllers/TodoController'
|
|
], function (
|
|
legacyRegistry,
|
|
TodoController
|
|
) {
|
|
legacyRegistry.register("tutorials/todo", {
|
|
"name": "To-do Plugin",
|
|
"description": "Allows creating and editing to-do lists.",
|
|
"extensions": {
|
|
"xviews": [
|
|
{
|
|
"key": "example.todo",
|
|
"type": "example.todo",
|
|
"glyph": "2",
|
|
"name": "List",
|
|
"templateUrl": "templates/todo.html",
|
|
"editable": true,
|
|
"toolbar": {
|
|
"sections": [
|
|
{
|
|
"items": [
|
|
{
|
|
"text": "Add Task",
|
|
"glyph": "+",
|
|
"method": "addTask",
|
|
"control": "button"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"items": [
|
|
{
|
|
"glyph": "Z",
|
|
"method": "removeTask",
|
|
"control": "button"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"controllers": [
|
|
{
|
|
"key": "TodoController",
|
|
"implementation": TodoController,
|
|
"depends": [ "$scope", "dialogService" ]
|
|
}
|
|
],
|
|
"stylesheets": [
|
|
{
|
|
"stylesheetUrl": "css/todo.css"
|
|
}
|
|
]
|
|
}
|
|
});
|
|
});
|