<button type="button" onClick={() => Koji.ui.navigate.createRemix()}>
Create my own customization
</button>
Provides methods for controlling navigation within your Koji app.
Starts a new customization.
appId
- String (Optional), ID of the Koji project to customize. Defaults to the current Koji app if an ID is not specified.
<button type="button" onClick={() => Koji.ui.navigate.createRemix()}>
Create my own customization
</button>
Closes a Koji app that is in a modal window.
<button type="button" onClick={() => Koji.ui.navigate.dismiss()}>
Close window
</button>
Opens the Koji app in editing mode.
Note
|
Check that the current user is an admin before calling this method. Otherwise, the user will not be authorized to edit the Koji app. |
<button type="button" onClick={() => Koji.ui.navigate.edit()}>
Edit this Koji
</button>
Opens the sharing dialog box. By default, the dialog box shares the URL of the current Koji. Specify a full or a relative URL to open a dialog box for sharing a different URL or for a deep link into your Koji app.
Note
|
If you use this method to share a deep link in your Koji app, a koji.to short URL is automatically created for it.
|
url
- String (Optional), URL to use instead of the current Koji.
<button type="button" onClick={() => Koji.ui.navigate.openShareDialog()}>
Share this Koji
</button>
// full URL
<button type="button" onClick={() => Koji.ui.navigate.openShareDialog('https://withkoji.com/@myname')}>
Share your profile
</button>
// relative URL
<button type="button" onClick={() => Koji.ui.navigate.openShareDialog('?key=value')}>
Share this info
</button>
Opens the content at the specified URL in a modal window that animates from the bottom of the screen. If the parent Koji is already displayed in a modal window, the content will open in the same window, replacing the current view.
url
- String, URL of the content to load.
<button type="button" onClick={() => Koji.ui.navigate.presentInModal(url)}>
My favorite Koji
</button>
Replaces the currently loaded Koji with the content at the specified URL.
url
- String, URL of the content to load.
<button type="button" onClick={() => Koji.ui.navigate.to(url)}>
My favorite Koji
</button>