<sharebutton>
This tag renders a button that copies a shareable link for the current view/record to the clipboard.
Additional Share Link features can be configured using Boardscript. See Share Links Functions for details.
| Attribute | Allowed Values | Requirements | Description |
|---|---|---|---|
| button-text | text | Optional | Allows overriding the default button text. |
| click-text | text | Optional | Allows overriding the default text that is displayed on the button after it is clicked. This text is displayed for a few seconds to give the user positive feedback that the click occurred and then reverts to the button text. |
Example
Copy Code
<sharebutton class="btn btn-sm btn-outline-secondary">Share</sharebutton>
Shared Links Functions
| GetShareLinkForCurrentView | |
|---|---|
| No parameters | Returns a shared link URL for the current view. The same output that is copied to the clipboard when a user clicks the <sharebutton/> . |
Copy Code
<script>
const sharedUrl = BoardScript.GetShareLinkForCurrentView();
console.log('The sharable URL is ', sharedUrl);
</script>