Skip to content

Commit

Permalink
Describe the commentAreaRows property
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanTsukanov committed Jul 3, 2024
1 parent 089ee97 commit b98f397
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1721,6 +1721,7 @@ export class SurveyModel extends SurveyElementCore
*
* You can override this property for individual Long Text questions: [`autoGrow`](https://surveyjs.io/form-library/documentation/api-reference/comment-field-model#autoGrow).
* @see allowResizeComment
* @see commentAreaRows
*/
public get autoGrowComment(): boolean {
return this.getPropertyValue("autoGrowComment");
Expand All @@ -1735,6 +1736,7 @@ export class SurveyModel extends SurveyElementCore
*
* You can override this property for individual Long Text questions: [`allowResize`](https://surveyjs.io/form-library/documentation/api-reference/comment-field-model#allowResize).
* @see autoGrowComment
* @see commentAreaRows
*/
public get allowResizeComment(): boolean {
return this.getPropertyValue("allowResizeComment");
Expand All @@ -1743,6 +1745,15 @@ export class SurveyModel extends SurveyElementCore
this.setPropertyValue("allowResizeComment", val);
}

/**
* Specifies the visible height of comment areas, measured in lines. Applies to the questions with the [`showCommentArea`](https://surveyjs.io/form-library/documentation/api-reference/question#showCommentArea) or [`showOtherItem`](https://surveyjs.io/form-library/documentation/api-reference/question#showOtherItem) property enabled.
*
* Default value: 2
*
* The value of this property is passed on to the `rows` attribute of the underlying `<textarea>` element.
* @see autoGrowComment
* @see allowResizeComment
*/
public get commentAreaRows(): number {
return this.getPropertyValue("commentAreaRows");
}
Expand Down

0 comments on commit b98f397

Please sign in to comment.