Skip to content

Commit e381d58

Browse files
committed
Supporting 'add' option for regular select fields
1 parent 4ea3a1c commit e381d58

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

dist/forms-angular.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ var fng;
566566
}
567567
else {
568568
common += (fieldInfo.readonly ? 'disabled ' : '');
569+
common += fieldInfo.add ? (' ' + fieldInfo.add + ' ') : '';
569570
value = '<select ' + common + 'class="' + allInputsVars.formControl.trim() + allInputsVars.compactClass + allInputsVars.sizeClassBS2 + '" ' + requiredStr + '>';
570571
if (!isRequired) {
571572
value += '<option></option>';

dist/forms-angular.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/forms-angular.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/directives/form.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ module fng.directives {
113113
}
114114
} else {
115115
common += (fieldInfo.readonly ? 'disabled ' : '');
116+
common += fieldInfo.add ? (' ' + fieldInfo.add + ' ') : '';
116117
value = '<select ' + common + 'class="' + allInputsVars.formControl.trim() + allInputsVars.compactClass + allInputsVars.sizeClassBS2 + '" ' + requiredStr + '>';
117118
if (!isRequired) {
118119
value += '<option></option>';

0 commit comments

Comments
 (0)