Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion embedding/embed-instructions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,25 @@ To open cal link on some action, make it pop open instantly by using `preload`.
</script>
```

- `calLink` - Cal Link that you want to embed e.g. john. Just give the username. No need to give the full URL https://cal.com/john
- `calLink` - Cal Link that you want to embed e.g. john. Just give the username. No need to give the full URL https://cal.com/john

#### Close modal

Programmatically closes a modal-based embed shown as a pop-up (for example, when opened via an element click or the floating button).

```js
<script>
Cal("closeModal");
</script>
```

**Supported embed types:**
- Pop-up via element click
- Floating button pop-up

**Namespaced usage:**
```js
<script>
Cal.ns.yournamespace("closeModal");
</script>
```