Closed elnabo closed 4 years ago
The thin im not sure about here is that, ideally, the list should be 100% native. The issue there then is that itemrenders wont work. It would be nice to be able to "detect" if you are using something more advanced that a BasicItemRenderer and then switch to a composite ListView, and if not, use standard wx version
for example:
Probably a better image:
But it i think, in keeping with the "spirit" of haxeui it would better to use pure native components where possible. I think, that there should also be a way to work out if the itemrenderer is something more complex too, but ill look at that tomorrow.
Is this still an issue with the latest master branch?
Expected Behavior
Clicking an item of a
ListView
should triggeronItemClick
.Current Behavior
Nothing happen.
onItemClick
is bound toMouse.CLICK
which correspond to clicking onButton
or similar. However theItemRenderer
areLabel
which doesn't generate such events.Possible Solution
ItemRenderer
toButton
but this will not look good.onItemClick
to trigger onMouse.LEFT_DOWN
but this will change the behavior of all other backends. Or possibly add the Mouse.LEFT_DOWN trigger only for hxwidget (maybe also xwt) in ListViewSteps to Reproduce (for bugs)