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
Reading ItemRenderer code, it would try to assign the data source's given field value to the ItemRenderer's corresponding-id-d Component's value field.
So I thought, if my custom component stores its data (a complex object) in a value field, then I could render a list of that custom component.
I define the custom component using the XML + inheriting class pattern hinted by the docs. The root of the template is a hbox, and that's what the component inherits from. But turns out, in HBox's hierarchy there's already a final value field. So this path is not fruitful for me.
Wondering if there's a way to render a list of custom components somehow? Or to get ItemRenderer try to update a component field different than value?
For now I worked it around by just using a vbox in a scrollview as a custom list component, and appending custom components in that vbox. Might even work as a persistent solution (but I like to ask things on the issue tracker, in case someone has the same question in the future).
Thank you!
The text was updated successfully, but these errors were encountered:
Reading ItemRenderer code, it would try to assign the data source's given field value to the ItemRenderer's corresponding-id-d Component's
value
field.So I thought, if my custom component stores its data (a complex object) in a
value
field, then I could render a list of that custom component.I define the custom component using the XML + inheriting class pattern hinted by the docs. The root of the template is a
hbox
, and that's what the component inherits from. But turns out, inHBox
's hierarchy there's already a finalvalue
field. So this path is not fruitful for me.Wondering if there's a way to render a list of custom components somehow? Or to get
ItemRenderer
try to update a component field different thanvalue
?For now I worked it around by just using a
vbox
in ascrollview
as a custom list component, and appending custom components in that vbox. Might even work as a persistent solution (but I like to ask things on the issue tracker, in case someone has the same question in the future).Thank you!
The text was updated successfully, but these errors were encountered: