temp-2939 - Removed hardcoded number of rows from textarea with the default value of 10.

This commit is contained in:
Ali.Taheri
2018-09-07 11:04:35 +01:00
parent 5986899b5e
commit da88cc2d04
2 changed files with 5 additions and 2 deletions

View File

@@ -1,9 +1,9 @@
<div ng-controller="Umbraco.PropertyEditors.textAreaController">
<textarea ng-model="model.value" id="{{model.alias}}" name="textarea" rows="10" class="umb-editor umb-textarea textstring" val-server="value" ng-keyup="model.change()"></textarea>
<textarea ng-model="model.value" id="{{model.alias}}" name="textarea" rows="{{model.config.rows || 10}}" class="umb-editor umb-textarea textstring" val-server="value" ng-keyup="model.change()"></textarea>
<span class="help-inline" val-msg-for="textarea" val-toggle-msg="required"><localize key="general_required">Required</localize></span>
<span class="help-inline" val-msg-for="textarea" val-toggle-msg="valServer"></span>
<div class="help" ng-if="model.maxlength">
<strong>{{model.count}}</strong>
<localize key="textbox_characters_left">characters left</localize>
</div>
</div>
</div>

View File

@@ -20,6 +20,9 @@ namespace Umbraco.Web.PropertyEditors
{
[PreValueField("maxChars", "Maximum allowed characters", "number", Description = "If empty - no character limit")]
public bool MaxChars { get; set; }
[PreValueField("rows", "Number of rows", "number", Description = "If empty - 10 rows would be set as the default value")]
public bool Rows { get; set; }
}
}
}