Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 79c0073

Browse files
author
Nick Litwin
committed
Add disabled ability to tc-input
1 parent ff65323 commit 79c0073

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

app/directives/tc-input/tc-input.directive.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
inputName: '@',
1515
inputType: '@',
1616
inputPattern: '=',
17+
inputRequired: '=',
18+
inputDisabled: '=',
1719
updateValueOnBlur: '&?'
1820
},
1921
link: function(scope, element, attrs) {

app/directives/tc-input/tc-input.jade

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
label.tc-label {{labelText}}
22

3-
input(name="{{inputName}}", type="{{inputType}}", placeholder="{{placeholder}}", ng-model="inputValue", ng-pattern="inputPattern")
3+
input(
4+
name="{{inputName}}",
5+
type="{{inputType}}",
6+
placeholder="{{placeholder}}",
7+
ng-model="inputValue",
8+
ng-pattern="inputPattern",
9+
ng-required="inputRequired",
10+
ng-disabled="inputDisabled"
11+
)

0 commit comments

Comments
 (0)