mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 05:07:52 +00:00
[Forms] Let Angular force required rows
Pass along ng-required values such that Angular may handle tracking of form validity based on the presence of required fields. WTD-530.
This commit is contained in:
parent
ede3e4f31e
commit
d7c7e2835f
@ -1,6 +1,7 @@
|
||||
<select class='form-control input select'
|
||||
ng-model="ngModel[field]"
|
||||
ng-options="o.name for o in options"
|
||||
ng-required="ngRequired"
|
||||
name="mctControl">
|
||||
<option value="" ng-if="!ngModel[field]">- Select One -</option>
|
||||
<span class='ui-symbol arw colorKey'>v</span>
|
||||
|
@ -1,6 +1,7 @@
|
||||
<span class='form-control shell'>
|
||||
<span class='field control'>
|
||||
<input type="text"
|
||||
ng-required="ngRequired"
|
||||
ng-model="ngModel[field]"
|
||||
name="mctControl">
|
||||
</span>
|
||||
|
@ -50,6 +50,9 @@ define(
|
||||
// Enabled/disabled state
|
||||
ngDisabled: "=",
|
||||
|
||||
// Whether or not input is required
|
||||
ngRequired: "=",
|
||||
|
||||
// Pattern (for input fields)
|
||||
ngPattern: "=",
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user