Replies: 1 comment 9 replies
-
Hi, The rest could looks like this: export component MyContainer {
in property <string> title;
in property <int> pane-row;
in property <int> pane-column;
// ....
} export component PaneGrid {
in property <[ContainerModel]> model;
...
for model[index] in root.model : MyContainer {
x: root.get-x(index);
y: root.get-y(index);
title: model.title;
}
function get-x(index: int) -> length {
// calculate x for the item on the given index from the model
}
function get-y(index: int) -> length {
// calculate y for the item on the given index from the model
}
} |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need widget something like this. Is it possible to make widget like this using slint?
Beta Was this translation helpful? Give feedback.
All reactions