Skip to content

Commit

Permalink
Describe the questionTitleWidth property
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanTsukanov committed Jun 18, 2024
1 parent 17d4c75 commit a9713d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,11 @@ export class PanelModelBase extends SurveyElement<Question>
if (this.parent) return this.parent.getQuestionTitleLocation();
return this.survey ? this.survey.questionTitleLocation : "top";
}
/**
* Sets consistent width for question titles in CSS values. Applies only when [`questionTitleLocation`](#questionTitleLocation) evaluates to `"left"`.
*
* Default value: `undefined`
*/
@property() questionTitleWidth: string;
getQuestionTitleWidth(): string {
return this.questionTitleWidth || this.parent && this.parent.getQuestionTitleWidth();
Expand Down

0 comments on commit a9713d3

Please sign in to comment.