You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The functions defined by the [methodname]`withFunction()` method can be called with any number of additional parameters. The additional argument of type [classname]`String` (the updated profession) is obtained from the second handler parameter with [methodname]`args.getString(0)`, where the number is the index of the argument in the [classname]`JsonArray`.
@@ -398,30 +405,34 @@ Indicates whether the item is selected or not.
398
405
`model.detailsOpened`::
399
406
Indicates whether the details row for the item is opened or closed.
400
407
408
+
`model.hasChildren`::
409
+
Indicates whether the item has child items and therefore can be expanded.
410
+
401
411
The example below shows how to create a custom tree toggle for the `TreeGrid`:
402
412
403
413
[source,java]
404
414
----
405
-
// The click listener needs to check if the event gets canceled (by
406
-
// vaadin-grid-tree-toggle) and only invoke the callback if it does.
407
-
// vaadin-grid-tree-toggle will cancel the event if the user clicks on
0 commit comments