mirror of
https://github.com/nasa/openmct.git
synced 2024-12-23 06:52:24 +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.
15 lines
602 B
HTML
15 lines
602 B
HTML
<span ng-controller="CompositeController as compositeCtrl">
|
|
<ng-form name="mctFormItem" ng-repeat="item in structure.items">
|
|
<mct-control key="item.control"
|
|
ng-model="ngModel[field]"
|
|
ng-required="ngRequired || compositeCtrl.isNonEmpty(ngModel[field])"
|
|
ng-pattern="ngPattern"
|
|
options="item.options"
|
|
structure="row"
|
|
field="$index">
|
|
</mct-control>
|
|
<span class="composite-control-label">
|
|
{{item.name}}
|
|
</span>
|
|
</ng-form>
|
|
</span> |