瀏覽代碼

Fix code example (#11487)

Fix example of using grid.setStyleGenerator in one line
tags/8.8.0.beta1
A.Mahdy AbdelAziz 5 年之前
父節點
當前提交
a996b95422
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      documentation/components/components-grid.asciidoc

+ 3
- 3
documentation/components/components-grid.asciidoc 查看文件

@@ -971,10 +971,10 @@ property of an item, you can style them as follows:

[source, java]
----
grid.setStyleGenerator(person -> {
grid.setStyleGenerator(person ->
// Style based on alive status
person.isAlive() ? null : "dead";
});
person.isAlive() ? null : "dead"
);
----

You could then style the rows with CSS as follows:

Loading…
取消
儲存