make textarea rows configurable (#3042)

* make textarea rows configurable

* add comments

* better defaults
This commit is contained in:
Matt Hill
2025-10-31 11:46:49 -06:00
committed by GitHub
parent 57c4a7527e
commit 1ea525feaa
6 changed files with 25 additions and 3 deletions

View File

@@ -22,8 +22,8 @@ import { HintPipe } from '../pipes/hint.pipe'
<textarea
placeholder="Placeholder"
tuiTextarea
[max]="6"
[min]="3"
[min]="spec.minRows"
[max]="spec.maxRows"
[attr.maxLength]="spec.maxLength"
[disabled]="!!spec.disabled"
[readOnly]="readOnly"

View File

@@ -96,6 +96,8 @@ export default class GatewaysComponent {
name: this.i18n.transform('File Contents'),
default: null,
required: true,
minRows: 16,
maxRows: 16,
}),
}),
},