Form Builder: TextArea: use existing rows/cols of custom field definition
authorJeff Kellem <github-dist@beyond.dreams.org>
Thu, 30 Nov 2023 09:05:15 +0000 (01:05 -0800)
committerJeff Kellem <github-dist@beyond.dreams.org>
Thu, 30 Nov 2023 09:05:15 +0000 (01:05 -0800)
ext/afform/core/ang/af/fields/TextArea.html

index cfb9942fd0d86c198a916d32b4c0d9168ca9177a..7abbde7379e0be58867b10c1bb505ea3005ee834 100644 (file)
@@ -1 +1 @@
-<textarea class="crm-form-textarea" id="{{:: fieldId }}" ng-required="$ctrl.defn.required" ng-model="getSetValue" ng-model-options="{getterSetter: true}" ></textarea>
+<textarea class="crm-form-textarea" id="{{:: fieldId }}" rows="{{:: $ctrl.defn.input_attrs.rows || 4 }}" cols="{{:: $ctrl.defn.input_attrs.columns || 60 }}" ng-required="$ctrl.defn.required" ng-model="getSetValue" ng-model-options="{getterSetter: true}" ></textarea>