mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 00:47:19 +00:00
96 lines
2.8 KiB
Markdown
96 lines
2.8 KiB
Markdown
---
|
|
title: "Share Base"
|
|
description: "Procedure to share a base & generating embedded iframe"
|
|
position: 615
|
|
category: "Product"
|
|
menuTitle: "Share Base"
|
|
---
|
|
|
|
<announcement></announcement>
|
|
|
|
## Generate 'Share base'
|
|
|
|
- Open Project
|
|
- Click on 'Share' button on top right tool bar
|
|
|
|

|
|
|
|
- Under 'Shared base link' tab
|
|
- Toggle from 'Disabled Share base' to 'Anyone with the link'
|
|
|
|

|
|
|
|
- Share base link generated is displayed over & can be used to share this project to others in the team [Selection (2) in the image below]
|
|
|
|

|
|
|
|
## Modify 'Share base'
|
|
|
|
Modify 'Share base' will invalidate earlier generated 'Share base' link & generate a new link.
|
|
|
|
- Open Project base
|
|
- Click on 'Share' button on top right tool bar
|
|
- Under 'Shared base link' tab
|
|
- Click on 'Reload' button
|
|
|
|
## Disable 'Share base'
|
|
|
|
Disable 'Share base' will invalidate generated 'Share base' link
|
|
|
|
- Open Project base
|
|
- Click on 'Share' button on top right tool bar
|
|
- Under 'Shared base link' tab
|
|
- Toggle from 'Anyone with the link' to 'Disable Share base'
|
|
|
|
## 'Share base' access permissions
|
|
|
|
Shared base can be configured as
|
|
|
|
- Viewer: User with the link will get READ ONLY access to the project data
|
|
- Editor: User with the link will get READ WRITE access to the project data
|
|
|
|
## Embeddable Frame
|
|
|
|
NocoDB interface can be embedded into existing applications easily by making use of [HTML IFRAME](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe)) attribute.
|
|
|
|
### Generate embeddable HTML code
|
|
|
|
- Open Project base
|
|
- Click on 'Share' button on top right tool bar
|
|
- Under 'Shared base link' tab
|
|
- Click on </> button to copy 'Embeddable HTML code'
|
|
|
|
Sample
|
|
|
|
```html
|
|
<iframe
|
|
class="nc-embed"
|
|
src="https://nocodb-nocodb-rsyir.ondigitalocean.app/dashboard/#/nc/base/e3bba9df-4fc1-4d11-b7ce-41c4a3ad6810?embed"
|
|
frameborder="0"
|
|
width="100%"
|
|
height="700"
|
|
>
|
|
style="background: transparent; border: 1px solid #ddd"></iframe
|
|
>
|
|
```
|
|
|
|
### Embed into application's HTML Body
|
|
|
|
Sample code with embedded iframe generated above
|
|
|
|
```html
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<iframe
|
|
class="nc-embed"
|
|
src="http://localhost:3000/#/nc/base/7d4b551c-b5e0-41c9-a87b-f3984c21d2c7?embed"
|
|
frameborder="0"
|
|
width="100%"
|
|
height="700"
|
|
style="background: transparent; "
|
|
></iframe>
|
|
</body>
|
|
</html>
|
|
```
|