[Forms] Handle disabled state generally
Handle disabled state for items in a toolbar generally, instead of only in buttons. WTD-684.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<a href=""
|
||||
class="t-btn l-btn s-btn s-icon-btn s-very-subtle"
|
||||
ng-class="{ labeled: structure.text, disabled: structure.disabled }"
|
||||
ng-class="{ labeled: structure.text }"
|
||||
ng-click="structure.click()">
|
||||
<span class="ui-symbol icon">
|
||||
{{structure.glyph}}
|
||||
|
||||
@@ -15,9 +15,10 @@
|
||||
{{item.name}}:
|
||||
</label>
|
||||
<mct-control key="item.control"
|
||||
ng-class="{ disabled: item.disabled }"
|
||||
ng-model="ngModel"
|
||||
ng-required="item.required"
|
||||
ng-pattern="getRegExp(row.pattern)"
|
||||
ng-pattern="getRegExp(item.pattern)"
|
||||
options="item.options"
|
||||
structure="item"
|
||||
field="item.key">
|
||||
|
||||
Reference in New Issue
Block a user