Skip to content

Commit

Permalink
retain new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
taefi committed Dec 5, 2023
1 parent eeaa6f7 commit 21f31da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions articles/react/components/auto-grid/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Auto Grid is a component for displaying tabular data based on a Java backend ser
== Basic Usage

Auto Grid requires a Java service that implements the `ListService<T>` interface. In this example, the `ProductService` class extends `ListRepositoryService<T, ID, R>`, which in turn implements the `ListService<T>`:

[.example]
--
.ProductService.java
Expand Down Expand Up @@ -59,10 +60,12 @@ include::{root}/frontend/demo/component/auto-grid/react/auto-grid-basic.tsx[rend

As you can see, Auto Grid automatically expands properties of `@OneToOne` relationships -- in this case the properties of the `supplier` -- and it displays them as columns in the grid. However, properties annotated with `@Id` or `@Version` are excluded by default. To show them, though, you can use the `visibleColumns` property to specify which columns to display. You can find more information on this in the next section.


== Customizing Columns

It's possible to customize the columns displayed by Auto Grid. How this is done is covered in the sub-sections here.


=== Visibility & Order

To choose which of the data properties should be displayed as columns in Auto Grid, and to specify the column order, set the property names to the `visibleColumns` property.
Expand Down

0 comments on commit 21f31da

Please sign in to comment.