Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mvysny committed Mar 13, 2024
1 parent f926102 commit 441d19b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion karibu-testing-v10/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,12 @@ narrow down your search:

### Customizing dump for your components

The `dump()` function uses the `toPrettyString()` function to print all basic information
Call `System.out.println(PrettyPrintTreeKt.toPrettyTree(UI.getCurrent()))` to
show a tree of all components attached to the current UI.
Note that the tree may not be up-to-date for reasons, call `MockVaadin.clientRoundtrip();`
to make it up-to-date; this is what all `_get()`/`_find()` functions do automatically.

The `toPrettyTree()` function uses the `toPrettyString()` function to print all basic information
about a Vaadin component: the visibility, read-only-ness, value, whether the component is enabled or not, etc.
See the above dump for an example for a
`TextField` and a `Button`.
Expand Down

0 comments on commit 441d19b

Please sign in to comment.