Hello!
I’m working on an application which uses the tab mode navigation on all platforms, as there could be several navigation items and I do not wish to add too many options, i’m looking at adding the Ellipsis at the end – which when clicked instead of pushing a new page, instead just adjusts the visibility of a column of FloatingActionButtons.
E.g:
Navigation {
id: navigationRoot
navigationMode: navigationModeTabs
NavigationItem {
icon: IconType.group
NavigationStack {
Collaborate {
}
}
}
NavigationItem {
icon: IconType.paintbrush
NavigationStack {
Create {
}
}
}
NavigationItem {
icon: IconType.ellipsisv
onSelected: floatingColumn.visible === true ? visible = false : visible = true
}
}
Column {
id: floatingColumn
z: 5
width: settingsButton.width
height: settingsButton.height * 3
anchors.right: parent.right
anchors.bottom: parent.bottom
visible: false
FloatingActionButton {
id: settingsButton
icon: IconType.cog
visible: true
anchors.right: undefined
anchors.bottom: undefined
}
FloatingActionButton {
icon: IconType.user
visible: true
anchors.right: undefined
anchors.bottom: undefined
}
FloatingActionButton {
icon: IconType.envelope
visible: true
anchors.right: undefined
anchors.bottom: undefined
}
}
However when clicking the NavigationItem it instead tried to push a non-existent page, even though there is none defined and all I call for is the selected handler to adjust the visibility?
I have tried disabling the button and placing an iconButton in it’s place however this causes chaos with the anchoring and does not work as intended regardless!
Any suggestions on this? Thanks.