Domo Javascript Navigation
Hello all.
I have a custom app where I want it to open content in a new tab when clicking on an element. It is a table and each row I need it to have this behaviour.
In Javascript there's the window.open command but it does not work with the Domo CLI and I don't know how to tell the code to do this behaviour in the domo.navigate function.
Any guidance and help is well received.
Thanks in advance.
Best Answer
-
Hello!
After installing the ryuu.js library, you can utilize the domo.navigate just like you would any other function. Most commonly, this has been used in a button onClick event like this:
<button onClick={()=>{domo.navigate('/admin', true)}}>Click me to go to Admin Settings</button>The above button would navigate the user that clicks on the button to Admin Settings in a new tab. You can read more about these functions here: https://developer.domo.com/docs/dev-studio-references/domo-js1
Answers
-
Hello!
After installing the ryuu.js library, you can utilize the domo.navigate just like you would any other function. Most commonly, this has been used in a button onClick event like this:
<button onClick={()=>{domo.navigate('/admin', true)}}>Click me to go to Admin Settings</button>The above button would navigate the user that clicks on the button to Admin Settings in a new tab. You can read more about these functions here: https://developer.domo.com/docs/dev-studio-references/domo-js1
Categories
- 10.5K All Categories
- 8 Connect
- 918 Connectors
- 250 Workbench
- 472 Transform
- 1.7K Magic ETL
- 69 SQL DataFlows
- 477 Datasets
- 203 Visualize
- 255 Beast Mode
- 2.1K Charting
- 12 Variables
- 17 Automate
- 354 APIs & Domo Developer
- 89 Apps
- 3 Workflows
- 20 Predict
- 5 Jupyter Workspaces
- 15 R & Python Tiles
- 247 Distribute
- 63 Domo Everywhere
- 243 Scheduled Reports
- 21 Manage
- 42 Governance & Security
- 181 Product Ideas
- 1.2K Ideas Exchange
- 12 Community Forums
- 27 Getting Started
- 14 Community Member Introductions
- 55 Community News
- 4.5K Archive