added swipe up for menu on PageHome

This commit is contained in:
vladimir.kuznetsov 2023-09-06 13:37:37 +05:00
parent 7fc4ea0c68
commit 4ab006f065
28 changed files with 90 additions and 85 deletions

View file

@ -47,6 +47,21 @@ PageType {
}
tabBarStackView.pop()
}
function onGoToPage(page, slide) {
var pagePath = PageController.getPagePath(page)
if (slide) {
tabBarStackView.push(pagePath, { "objectName" : pagePath }, StackView.PushTransition)
} else {
tabBarStackView.push(pagePath, { "objectName" : pagePath }, StackView.Immediate)
}
}
function onGoToStartPage() {
while (tabBarStackView.depth > 1) {
tabBarStackView.pop()
}
}
}
Connections {