mirror of
https://github.com/nasa/openmct.git
synced 2024-12-29 09:28:52 +00:00
218f732dc2
Add a controller for composite controls; this is used to flag contained controls as required when they have been partially filled in (to treat entering one of two such fields as invalid.) WTD-593.
80 lines
2.3 KiB
JSON
80 lines
2.3 KiB
JSON
{
|
|
"name": "MCT Forms",
|
|
"description": "Form generator; includes directive and some controls.",
|
|
"extensions": {
|
|
"directives": [
|
|
{
|
|
"key": "mctForm",
|
|
"implementation": "MCTForm.js"
|
|
},
|
|
{
|
|
"key": "mctControl",
|
|
"implementation": "MCTControl.js",
|
|
"depends": [ "controls[]" ]
|
|
}
|
|
],
|
|
"controls": [
|
|
{
|
|
"key": "checkbox",
|
|
"templateUrl": "templates/controls/checkbox.html"
|
|
},
|
|
{
|
|
"key": "datetime",
|
|
"templateUrl": "templates/controls/datetime.html"
|
|
},
|
|
{
|
|
"key": "select",
|
|
"templateUrl": "templates/controls/select.html"
|
|
},
|
|
{
|
|
"key": "textfield",
|
|
"templateUrl": "templates/controls/textfield.html"
|
|
},
|
|
{
|
|
"key": "composite",
|
|
"templateUrl": "templates/controls/composite.html"
|
|
}
|
|
],
|
|
"controllers": [
|
|
{
|
|
"key": "DateTimeController",
|
|
"implementation": "controllers/DateTimeController.js",
|
|
"depends": [ "$scope" ]
|
|
},
|
|
{
|
|
"key": "CompositeController",
|
|
"implementation": "controllers/CompositeController.js"
|
|
}
|
|
],
|
|
"templates": [
|
|
{
|
|
"key": "_checkbox",
|
|
"templateUrl": "templates/_checkbox.html"
|
|
},
|
|
{
|
|
"key": "_checkboxes",
|
|
"templateUrl": "templates/_checkboxes.html"
|
|
},
|
|
{
|
|
"key": "_datetime",
|
|
"templateUrl": "templates/_datetime.html"
|
|
},
|
|
{
|
|
"key": "_select",
|
|
"templateUrl": "templates/_select.html"
|
|
},
|
|
{
|
|
"key": "_selects",
|
|
"templateUrl": "templates/_selects.html"
|
|
},
|
|
{
|
|
"key": "_textfield",
|
|
"templateUrl": "templates/_textfield.html"
|
|
},
|
|
{
|
|
"key": "_textfields",
|
|
"templateUrl": "templates/_textfields.html"
|
|
}
|
|
]
|
|
}
|
|
} |