Skip to content

Commit 725b7b3

Browse files
committed
Added optional clear text attribute to date input.
1 parent 35cabba commit 725b7b3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/date-input.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</div>
3535
</div>
3636
<div class="clear-button" ng-if="!!date">
37-
<div ng-click="update()">Clear</div>
37+
<div ng-click="update()" ng-bind="clearText || 'Clear'"></div>
3838
</div>
3939
</div>
4040
</div>

src/date-input.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ directive('dateInput', ['$document', '$timeout', function ($document, $timeout)
1515
maxDate:'=?',
1616
onChange: '&',
1717
placeholder: '@',
18+
clearText: '@',
1819
cssClass:'@',
1920
},
2021
replace: true,

0 commit comments

Comments
 (0)