How to call a function using condition? #12492
Unanswered
mrinmoysarkar-dev
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 want to add a callback or create a slint function inside the
AdritaWindow.slintbased on the boolean property received fromCloseButton.slintthat will terminate the Program.Inside
// Adding TitleBar Functionality, I want do something similar as the following,if (Close.clickedCloseButton) { closeWindow; }where
closeWindowis a callback or a pure function in slint.The concerned code of the files are given below.
AdritaWindow.slint
CloseButton.slint
Just trying to create the functionality of the buttons it the titlebar.

Beta Was this translation helpful? Give feedback.
All reactions