Custom container components which observe properties on @children #4806
Unanswered
mitchgrout
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Right now I would expect you having your images in a model, so can't you just look at the data in that model? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The documentation is currently a bit light on how
@children
can be used. I'd like to make an image-carousel-like container component, which would require me to do things like...My gut feeling would be that these properties would be available on
@children
, likewidth: max(@children.width...)
, or perhaps it could be attained by iterating with@children
being a model, but these all appear to be parse errors. I've noted that the core container components likeHorizontalLayout
seem to be implemented outside of the Slint language, so I suspect this might not be doable in v1.4?If this is currently not doable, is it worthwhile implementing? It would allow for richer components, but at the cost of increased complexity.
Beta Was this translation helpful? Give feedback.
All reactions