Replies: 2 comments
-
|
Currently there is no direct way - you need to choose between data list or indexed list. |
Beta Was this translation helpful? Give feedback.
-
|
mhm, it's not exactly the approach you were asking, but off the top of my head maybe a simple yet effective API would be to have a DataListItem that would be based off DataItem, and include a GetIndex() method. But I'm not still clear on how it could be added to the list elements with backward compatibility for the current existing signatures. Maybe a P.S. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a list with databinding that is supposed to draw buttons with a description.
In case the description is too long I have a function that wraps it to a fixed width, and I'm trying to render it properly.
So far I got to this snippte of code:
As a different workaround I used this "hack", but I was wondering if there's a better, and more idiomatic way in Fyne to achieve my goal:
Beta Was this translation helpful? Give feedback.
All reactions