]> source.dussan.org Git - vaadin-framework.git/commitdiff
Small docs fix (#10749)
authorIlia Motornyi <elmot@vaadin.com>
Tue, 3 Apr 2018 08:32:13 +0000 (11:32 +0300)
committerGitHub <noreply@github.com>
Tue, 3 Apr 2018 08:32:13 +0000 (11:32 +0300)
documentation/components/components-grid.asciidoc

index 74d196cf28aa3bcf86d4a0db418bafb9c0820908..898935b4c108763eb200556729e659acfb0d8912 100644 (file)
@@ -957,9 +957,9 @@ You can style entire rows or individual cells with a
 [[components.grid.stylegeneration.row]]
 === Generating Row Styles
 
-You set a [interfacename]#StyleGenerator# to a grid with
-[methodname]#setStyleGenerator()#. The [methodname]#getStyle()# method gets a
-date item, and should return a style name or [parameter]#null# if
+The easiest way to style rows is to make a lambda and set it with
+[methodname]#setStyleGenerator()# to a grid.
+The lambda gets a data item, and should return a style name or [parameter]#null# if
 no style is generated.
 
 For example, to add a style names to rows having certain values in one