Stay organized with collections Save and categorize content based on your preferences.
NavigationA helper object that controls card navigation. See the card navigation guide for more details.
Detailed documentationpopCard()
Pops a card from the navigation stack. Can be chained with other card navigation actions.
ReturnNavigation
— This object, for chaining.
popToNamedCard(cardName)
Pops to the specified card by its card name. Can be chained with other card navigation actions.
Parameters Name Type DescriptioncardName
String
The name of the card to navigate to. Return
Navigation
— This object, for chaining.
popToRoot()
Pops the card stack to the root card. Can be chained with other card navigation actions.
ReturnNavigation
— This object, for chaining.
printJson()
Prints the JSON representation of this object. This is for debugging only.
ReturnString
pushCard(card)
Pushes the given card onto the stack. Can be chained with other card navigation actions.
Parameters Name Type Descriptioncard
Card
A card to add to the stack. Return
Navigation
— This object, for chaining.
updateCard(card)
Does an in-place replacement of the current card. Can be chained with other card navigation actions.
Parameters Name Type Descriptioncard
Card
A card to replace the current card with. Return
Navigation
— This object, for chaining.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-02 UTC."],[[["The Navigation object facilitates card navigation within Google Workspace add-ons, allowing developers to control the flow and presentation of user interfaces."],["It offers methods like `pushCard()`, `popCard()`, and `updateCard()` to manage the card stack, enabling dynamic and interactive user experiences."],["Developers can use `popToNamedCard()` or `popToRoot()` for direct navigation to specific cards within the stack, enhancing user control and flexibility."],["All navigation methods are chainable, providing a streamlined and efficient way to sequence multiple actions and create complex navigation flows within the add-on."],["The `printJson()` method aids debugging by outputting the object's JSON representation, allowing developers to inspect its structure and state."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4