summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatu Lund <tatu@vaadin.com>2020-01-13 15:42:12 +0200
committerAnna Koskinen <Ansku@users.noreply.github.com>2020-01-13 15:42:12 +0200
commitf8ffc894b6060456e4a230e4e99a9bc2087cddda (patch)
tree004ad031c6df6399ea1e558e1983105ab437d0fc
parentfe86bb59f4d56abd70861146ff2106415bc836a4 (diff)
downloadvaadin-framework-f8ffc894b6060456e4a230e4e99a9bc2087cddda.tar.gz
vaadin-framework-f8ffc894b6060456e4a230e4e99a9bc2087cddda.zip
Added Note about TextField in Header cell (#11858)
Fixes https://github.com/vaadin/framework/issues/9089
-rw-r--r--documentation/components/components-grid.asciidoc7
1 files changed, 7 insertions, 0 deletions
diff --git a/documentation/components/components-grid.asciidoc b/documentation/components/components-grid.asciidoc
index 32d47097f7..77b44ebf0e 100644
--- a/documentation/components/components-grid.asciidoc
+++ b/documentation/components/components-grid.asciidoc
@@ -721,6 +721,13 @@ yearsCell.setHtml("<b>Years</b>");
You can set a component in a header or footer cell with
[methodname]#setComponent()#. Often, this feature is used to allow filtering.
+[NOTE]
+====
+Note, when you use [methodname]#setComponent(TextField)#, the [classname]#TextField# will be rendered in compact mode
+without caption and icon. If you need to override this behavior, you need to wrap the [classname]#TextField# e.g.
+into [classname]#HorizontalLayout#.
+====
+
////
// commented out until filtering is sorted for 8
[[components.grid.filtering]]