From b69e8a12aab6c5b11030265878cb5c8902323952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Fri, 22 Nov 2024 10:43:47 +0300 Subject: [PATCH 1/4] docs: text area min / max rows --- articles/components/text-area/index.adoc | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/articles/components/text-area/index.adoc b/articles/components/text-area/index.adoc index 37ba4f0f48..874dee06f8 100644 --- a/articles/components/text-area/index.adoc +++ b/articles/components/text-area/index.adoc @@ -100,6 +100,36 @@ include::{root}/frontend/demo/component/textarea/react/text-area-height.tsx[rend endif::[] -- +Alternatively, the minimum and maximum height can be constrained to a specific number of text rows like so: + +[.example] +-- +ifdef::lit[] +[source,html] +---- + + +---- +endif::[] + +ifdef::flow[] +[source,java] +---- + +TextArea textArea = new TextArea(); +textArea.setMinRows(4); +textArea.setMaxRows(8); +---- +endif::[] + +ifdef::react[] +[source,tsx] +---- + + +---- +endif::[] +-- // Basic Features From a51e0a8f3a6b97d51ed02c0decea33cbbab95dc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Fri, 22 Nov 2024 10:45:57 +0300 Subject: [PATCH 2/4] add heading with since tag --- articles/components/text-area/index.adoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/articles/components/text-area/index.adoc b/articles/components/text-area/index.adoc index 874dee06f8..076a49273c 100644 --- a/articles/components/text-area/index.adoc +++ b/articles/components/text-area/index.adoc @@ -100,6 +100,9 @@ include::{root}/frontend/demo/component/textarea/react/text-area-height.tsx[rend endif::[] -- +[role="since:com.vaadin:vaadin@V24.6"] +=== Minimum & Maximum Rows + Alternatively, the minimum and maximum height can be constrained to a specific number of text rows like so: [.example] From 394a3fcf5e9b121d0890941328b99db4d27149d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Fri, 22 Nov 2024 12:05:26 +0300 Subject: [PATCH 3/4] Update articles/components/text-area/index.adoc Co-authored-by: Tomi Virkki --- articles/components/text-area/index.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/components/text-area/index.adoc b/articles/components/text-area/index.adoc index 076a49273c..d0e518bec3 100644 --- a/articles/components/text-area/index.adoc +++ b/articles/components/text-area/index.adoc @@ -129,7 +129,7 @@ ifdef::react[] [source,tsx] ---- - +