Closed MonsieurNiark closed 2 years ago
Hi, good question. Components rendered by renderers are generally not attached on the server-side as children, therefore the RadioButtonGroup will never contain those components as children.
Grid has a means to return components returned by renderers: _getCellComponent()
as documented at https://github.com/mvysny/karibu-testing/tree/master/karibu-testing-v10#componentrenderer . I'll add the same thing for RadioButtonGroup.
Actually the code is very simple:
public fun <T : Any> RadioButtonGroup<T>._getRenderedComponent(item: T): Component =
itemRenderer.createComponent(item)
Implemented in Karibu-Testing 1.3.13
Hello,
I am struggling while trying to interact with a dynamic radio group, and I do not find any example in code or documentation (except something about getItemsLabel, which is returning me "Div[]" x2.
They are rendering in div, because my radio group acting like a choice menu. Any idea on how to interact with them?
Thank you.