From f8ffc894b6060456e4a230e4e99a9bc2087cddda Mon Sep 17 00:00:00 2001 From: Tatu Lund Date: Mon, 13 Jan 2020 15:42:12 +0200 Subject: Added Note about TextField in Header cell (#11858) Fixes https://github.com/vaadin/framework/issues/9089 --- documentation/components/components-grid.asciidoc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'documentation/components') 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("Years"); 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]] -- cgit v1.2.3