Hi
I hope I understand the question correctly, are you looking for something like this:
import Felgo 3.0
import QtQuick 2.5
App {
id: app
Navigation {
id: navigation
NavigationItem {
title: "First"
icon: IconType.heart
NavigationStack {
Page {
title: "First Page"
AppButton {
anchors.centerIn: parent
text: "Open Second Page"
onClicked: {
navigation.currentIndex = 1
}
}
}
}
}
NavigationItem {
title: "Second"
icon: IconType.heart
NavigationStack {
Page {
title: "Second Page"
AppButton {
anchors.centerIn: parent
text: "Open First Page"
onClicked: {
navigation.currentIndex = 0
}
}
}
}
}
}
}
I am changing the active navigation item by changing the currentIndex of the navigation with my buttons.
Cheers,
Alex