navigation FAQs
Last updated
Last updated
The Navigation component uses the navigate.clear('destination_view_path')
function to navigate to a view. In the case where view arguments are passed to the view, it uses navigate.clear('destination_view_path', arg1, arg2...)
.
Please refer to for more info.
The Navigation drawer will only be visible on a view when that view is listed as one of the navigation items in the drawer (and visible with show-if
/ hide-if
) AND that view is the only one on the stack, e.g. the back button is not showing.
It is recommended to use navigate.clear('view_path')
or navigate.replace('view_path')
to navigate to views on which the hamburger menu should display.
Yes. A typical use-case for this is when you want to group navigation items under one 'heading' inside a section.
To do this, specify child items inside a collapsable parent item, for example:
Result
Note: When using a PNG, the image should:
be at least 224px in width and 136px in height
not contain any padding
have a transparent background
Yes. The background color can be specified using style-header-background="my_named_color"
refer to **** the for more info.
Yes. Please refer to the navigation
for more detail.
When the app is initialized, all collapsable items and sections are expanded, but you can programmatically collapse (and open) items, assigning unique id
's and using the or methods.
For apps where switching the app language isn't relevant, the "Language" item can be hidden from the by clearing out the languages
array in your app's config.json
file: