I want to run function “factorial” when page has been becomes the active page. How I can do It?
NavigationStack{
Page{
id: taskrow
title: "Listy"
SearchBar {
id: searchBarThreads
onAccepted: {
}
}
AppListView {
delegate: SimpleRow {
onSelected: console.log("Clicked Item #"+index)
width: parent.width/2
}
model: [
{
text: "Lista 1",
detailText: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
},
{
text: "Lista 2",
detailText: "Sed vel ipsum ac dui aliquam ornare.",
},
{
text: "Lista 3",
detailText: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
},
{
text: "Lista 4",
detailText: "Sed vel ipsum ac dui aliquam ornare.",
}
]
}
function factorial() {
if(isCurrentStackPage==true);
else{
taskrow.title = "false";
}
}
}
}