NavigationView.replaceWithTags

Replaces the current navigation stack with pages with the tags tags.

The last page becomes the visible page.

Replacing the navigation stack has no animation.

If adw.navigation_view.NavigationView.add hasn't been called for any pages that are no longer in the navigation stack, they are automatically removed.

n_tags can be 0, in that case no page will be visible after calling this method. This can be useful for removing all pages from self.

The signalNavigationView::replaced signal will be emitted.

See adw.navigation_view.NavigationView.replace and propertyNavigationPage:tag.

class NavigationView
void
replaceWithTags
(
string[] tags
)

Parameters

tags string[]

tags of the pages in the navigation stack