Do you have to re-declare callbacks from imported components. #5452
Answered
by
ogoffart
samrock5000
asked this question in
General
-
i have something like import { InitWindow } from "init.slint";
export { InitWindow }
export component MainWindow inherits Window {
callback realy-cool-function <=> init-window.realy-cool-function;
}
I found this to be the only way to access |
Beta Was this translation helpful? Give feedback.
Answered by
ogoffart
Jun 22, 2024
Replies: 1 comment
-
If the callback is in a global, you can also access re-exported global directly from native code using the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
samrock5000
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the callback is in a global, you can also access re-exported global directly from native code using the
.global<...>()
functionOtherwise, yes, you need to re-declare callback in the root component.